0
Anyone can fix my code? It's always show 1 why is that
3 Answers
+ 5
Start0 is always greater than solve0.
Input:
2
8
start0 = 2
solve0 = -6
2 > -6
Input:
8
6
start0 = 8
solve0 = 2
So the for loop is not run.
+ 2
Thx it's fixed yeah it's factorial
+ 1
YwLeonard