Search found 1 match

by akidsultan
Sat Dec 01, 2012 9:25 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 47906

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

i got wrong answer but i don't find my fault .......................
pls help me..............
here is my code.....

#include<stdio.h>
long long int fact(long long int n)
{
if(n==0)
return 1;
else
return (n*fact(n-1));
}
int main()
{
long long int a;
while(scanf("%lld",&a)!=EOF)
{
if(a<0&&a ...

Go to advanced search