vasco-da-gama
C IS AS DEEP AS SEA
Tuesday, 27 September 2011
factorial
#include<stdio.h>
#include<conio.h>
int fact()
int factorial(int num)
{
int f=1,i;
for(i=1;i<=num;i++)
f=f*i;
return(f);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment