Search found 2 matches

by what!
Fri Jun 08, 2012 9:40 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 32936

Re: 10323 - Factorial! You Must be Kidding!!!

brianfry713 wrote:You misspelled Underflow
Thanks. It is now AC.
by what!
Thu Jun 07, 2012 8:34 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 32936

Re: 10323 - Factorial! You Must be Kidding!!!

what is the wrong? please help..... #include <stdio.h> int main() { int n,i; long long int sum; while((scanf("%d",&n)==1)) { sum=1; if(n<8&&n>0) printf("Underdflow!\n"); else if(n>13) printf("Overflow!\n"); else if(n>=8&&n<=13) { for(i=n;i>=1;i--) { sum=sum*i; } printf("%lld\n",sum); } else if(n<=0)...

Go to advanced search