0

hi .. do u guys know why 13! is not same as like calculator ??

https://code.sololearn.com/cDEpY55uhTi4/?ref=app

21st Nov 2020, 7:22 AM
dy dy dy
dy dy dy - avatar
4 ответов
+ 2
it's because of the integer type you're using, use long long int or unsigned long long that will give you enough room
21st Nov 2020, 7:34 AM
✳AsterisK✳
✳AsterisK✳ - avatar
0
it doesn't work Vadivelan
21st Nov 2020, 7:34 AM
dy dy dy
dy dy dy - avatar
0
so i should change it ? or what ??
21st Nov 2020, 7:36 AM
dy dy dy
dy dy dy - avatar
0
hidaya "fact" should be long long fact=1; or unsigned long long fact =1;
21st Nov 2020, 7:48 AM
✳AsterisK✳
✳AsterisK✳ - avatar