#include"stdio.h"
void main()
{
int i,n,fact=1;
clrscr();
printf("Enter the number \n");
scanf("%d",&n);
for(i=1; i<=n; i++)
fact = fact*i;
printf("Factorial of %d is %d\n",n,fact);
getch();
}
Jun 7, 2012
Subscribe to:
Post Comments (Atom)
A blog dedicated to all engineering students and geeks !!
No comments:
Post a Comment