THE 'C'- ARCHIE STYLE...
Thursday, March 31, 2011
Factorial
void main()
{
int n,i,f=1;
clrscr();
printf("enter the no.");
scanf("%d",&n);
for(i=n;i>1;i--)
f*=i;
printf("%d",f);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment