8 kyu

Multiply the number

9,398 of 22,540san00
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • Abdulhay_777 Avatar

    Hello how are you my name is Abdulhay Iam from Uzbekistan

  • Zinziver33 Avatar

    изюминка этой задачи, вызывает улыбку

  • ImNotIsaac03IV Avatar

    I tried doing this with the Math.Pow method, but it say that it doesn't exist in the context. I already executed the code elsewhere and it worked. Does anyone know what the problem is? I'm coding with C#

  • Origami Master Avatar

    This comment has been hidden.

  • CodyFace Avatar

    Hello, I have tested my code in my editor and it passes, but when I try to run it here, I get the error 'multiply' is not defined'. Can someone help please?

  • inamtyulhaq Avatar

    that negative number in test case was tricky..finally guessed it out

  • cepiseptiyana Avatar

    mass saya pakai if(number == 10) return 50 * 5; ada yang lebih simple lagi ? btw saya baru belajar javascript

  • avichii Avatar

    im going to practice C straight 10 days. today is the start.

  • ShadowStalker Avatar

    This comment has been hidden.

  • o2001 Avatar

    Is that weird empty block in the description intentional?

  • spartakanec Avatar

    This comment has been hidden.

  • buhaymalaya Avatar

    This comment has been hidden.

  • PetitLu117 Avatar

    Lua translation

    Can someone review it ? It's my first translation. Thanks

  • emmadrm Avatar

    the only error is that "50 should equal 250" but that doesnt make sense. shouldnt it equal 1250?

  • rowcased Avatar

    C Translation (author inactive).

  • KayleighWasTaken Avatar

    This comment has been hidden.

  • aaamrlll Avatar

    This comment has been hidden.

  • saudiGuy Avatar

    python new test framework is required. updated in this fork

  • majqusq Avatar

    Wrong basic test, according to it 50*5^2 is 250, correct is 1250

  • konung-nvkz Avatar

    Well, at least for JS there is no debugging. Just a simple-dimple code writing. Nevertheless, funny enough

  • Jahanzaib772 Avatar

    This comment has been hidden.

  • ejini战神 Avatar

    Description should be language-agnostic

  • user9644768 Avatar

    Ruby 3.0 should be enabled.

  • PaulRoss1 Avatar

    This comment has been hidden.

  • mav1984 Avatar

    This comment has been hidden.

  • TheLamia Avatar

    Jack sounds like somebody who has bodies burried in his basement...

  • user6487539 Avatar

    Excellent, I liked the idea to take the case of negative numbers.

  • Souzooka Avatar

    C# translation, please review and approve.

  • bestwebua Avatar

    Thanks!

  • Verall Avatar

    python test cases broken

    File "", line 8 Test.describe("Basic Tests") ^ SyntaxError: invalid syntax

  • Javatlacati Avatar

    CoffeeScript translation Kumited! Please accept :D

  • MoinRobertsIslam Avatar

    Hi there, I'm a total newbie, so kata like this are perfect for just getting started. Thank you! It seemed easy for the first 4 test cases, but then I had to go away and learn something new (for me) to pass the 5th test case. Thanks!

  • svpersteve Avatar

    I think you can never have too many katas, and beginners need katas like these, which they won't necessarily find easy.

    Worrying about issues caused by there being too many katas is worrying about problems that don't exist. If a beginner wants to spend 30 hours of their life doing 300 katas like this one just for a hollow level 5, they're only cheating themselves out of progress.

    As long as we each know how much we've worked to achieve our own scores, we shouldn't worry too much about how others achieved theirs and just be proud of ourselves for getting to the level we're at.

  • g964 Avatar

    Is that a kata?-)

  • GiacomoSorbi Avatar

    Translated into both Python and Ruby, if you want to approve them and nice first kata, brava :)

  • ozymandias1 Avatar

    This is marked with the "Bugs" tag but there's no real bugs to fix here. you create the whole code yourself short of the function name and parameter.

    perhaps stick something in there like:

    function Multiply(num) = {
    var a = num x 5
    }
    return a;
    

    so that theyre actually fixing something 1) * instead of x b) return needs to be within function c) instead of defining "var a" and returning that can just submit "return num * 5" and d) remove "=" from first line.

  • PG1 Avatar

    Good effort for your first kata:D