# Multiplying numbers [duplicate]

Your task, is simply to multiply 2 integers given in input, separated by a ",". The catch is, you cannot use the multiplication operator "*", even if it is being used differently, or any loops whatsoever

This is code-golf, so shortest code wins!

Test cases: i dont know if you even need it! lol

1,0 -> 0

5,6 -> 30

3920,549 -> 2152080

• Not only is this a duplicate of existing challenges, but it suffers the same lack of clarity they did: "you cannot use the multiplication operator or loops" is not a well-defined requirement, on top of being unobservable Jan 10 at 9:59
• Can I use chr(42)? Jan 10 at 10:01
• In addition to what @pxeger mentions above, do X without Y challenges are pretty hard to write proper challenges for, and it's advised to avoid until you have a bit more experience writing challenges. It's also best to use the Sandbox of proposed challenges to get feedback before posting it to main. Jan 10 at 10:02

# 05AB1E, 6 bytes

',¡иO


Would be 2 bytes without the restricted input-format:

иO


Explanation:

',¡    '# Split the (implicit) input-string on ","
# Pop and push both values separated to the stack
и   # Repeat the first value the second value amount of times as list
O  # Sum that list
# (after which the result is output implicitly)


# Python 3, 32 bytes

lambda x,y:eval("x"+chr(42)+"y")


Try it online!

• no multiplication sign my friend Jan 10 at 9:54
• @DialFrost this is repeat, not multiply Jan 10 at 9:55
• its still a sign, sry but u cannot use it whatsoever Jan 10 at 9:56