Multiplying a range | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Multiplying a range

How would you multiply an input that's ranged? Like if I have -6 and I need an answer of 720

16th Feb 2019, 6:19 PM
Amy Lara
3 Answers
+ 3
In python I would do it with functools.reduce https://code.sololearn.com/c7w6lfJ7CRlI/?ref=app
16th Feb 2019, 6:47 PM
Tibor Santa
Tibor Santa - avatar
+ 3
Amy Lara you did not specify the programming language though, nor have you demonstrated any effort so far, how you have tried to solve the problem.
16th Feb 2019, 9:38 PM
Tibor Santa
Tibor Santa - avatar
0
Maybe I should be clearer. What its asking is for me to have this: Enter a negative number: -6 720
16th Feb 2019, 7:23 PM
Amy Lara