#include
#include
void main()
{
int n,i,fact=1;
clrscr();
printf("Enter any no: ");
scanf("%d",&n);
for(i=n;i>=1;i--)
{
fact=fact*i;
}
printf("Factorial=%d",fact);
getch();
}
'
Output:
Enter a no: 5
Factorial=120
we can share the knowledge with our friends. So they can share with their friends. and so on... Finally You can turn back ...how many of them stand behind you....
Modified By Blogcrowds
No comments:
Post a Comment