0

FACTORIAL

This program finding a factorial of number you enter. https://code.sololearn.com/c6yKqm5zEURe/?ref=app

18th Jun 2017, 6:48 PM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
15 Respostas
+ 1
Fix it 10sec later :D
18th Jun 2017, 7:27 PM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
+ 1
I hope, peoples write just positive numbers :D
18th Jun 2017, 7:28 PM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
23rd Jun 2017, 6:50 PM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
+ 1
https://www.sololearn.com/discuss/494074/?ref=app
27th Jun 2017, 7:33 PM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
0
You included unused header files. The only required one is iostream
18th Jun 2017, 7:26 PM
Louis
Louis - avatar
0
Yea
18th Jun 2017, 7:27 PM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
0
Also you should catch wrong user input (floating point numbers, strings and numbers smaller than 1)
18th Jun 2017, 7:28 PM
Louis
Louis - avatar
0
Also x does not need to be of type long long. int is absolutely sufficient. Same for "your"
18th Jun 2017, 7:30 PM
Louis
Louis - avatar
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!
19th Jun 2017, 6:19 AM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
19th Jun 2017, 5:51 PM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
22nd Jun 2017, 5:59 AM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
24th Jun 2017, 8:49 AM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
0
https://www.sololearn.com/discuss/490139/?ref=app
25th Jun 2017, 5:40 PM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
26th Jun 2017, 4:21 PM
FUN HOMSTER :D
FUN HOMSTER :D - avatar
0
https://code.sololearn.com/cwNT3m9ykPrb/?ref=app
18th Jul 2017, 7:30 AM
FUN HOMSTER :D
FUN HOMSTER :D - avatar