Home > Back-end >  C. ask factorial output error problem
C. ask factorial output error problem

Time:06-11

I intend to be a factorial additive and multiplicative problems, but in 20! When the result is 0,
But I use another program for 20! And there is no problem, when

Could you tell me what the problems caused by errors,

CodePudding user response:

Why do you want to use double at the beginning, the beginning with long int, finally output s (double) s forced conversion

CodePudding user response:

Don't map, post code

CodePudding user response:

Try to use unsigned long long, is expressed in 8 bytes (32 bit systems),

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related