0
I'm looking for smallest common multiple, but my code doesn't work
9 Answers
0
Can you explain more please?
0
I wanted to make sure n can be divided by all the numbers from 1 to 20 in the set, but it seems like my code will loop endlessly. I think the problem is on line 8 or 9
0
I mean I can make it in c++.... You want N to be divided by all the numbers between 1-20? for example if n is 2 and the number is 2 it will print 1?
0
Yeah, I actually can solve it mathematically, just trying to solve it by codes
0
Yeah I guess you can it's not really hard for some people atleast would you like me to make it in c++?
0
But I don't know C++,so I guess no need, but thanks anywaysđ
0
something like this?
https://code.sololearn.com/ctIS7jaPiQYj/?ref=app
0
I tried using And
https://code.sololearn.com/cfQ6YpUoXV4M/?ref=app