0
FACTORIAL
This program finding a factorial of number you enter. https://code.sololearn.com/c6yKqm5zEURe/?ref=app
15 Respostas
+ 1
Fix it 10sec later :D
+ 1
I hope, peoples write just positive numbers :D
+ 1
https://www.sololearn.com/discuss/494074/?ref=app
0
You included unused header files. The only required one is iostream
0
Yea
0
Also you should catch wrong user input (floating point numbers, strings and numbers smaller than 1)
0
Also x does not need to be of type long long. int is absolutely sufficient.
Same for "your"
0
Ok, now you CAN'T:
-Inlut negative numbers(<0)
Fix:
-Now x is int (no long long int)
-No unused header files like (conio. h, windows. h... and another)
Thanks for tips guys!
0
New program here! Test it!
https://code.sololearn.com/cU79RaWQy83i/?ref=app
0
NEW useful program! Test it!
https://code.sololearn.com/cboUARf2CZLh/?ref=app
0
. Ohh... Here guys...
https://www.sololearn.com/discuss/487453/?ref=app
0
https://www.sololearn.com/discuss/490139/?ref=app
0
https://code.sololearn.com/cwNT3m9ykPrb/?ref=app