#include<stdio.h>
void main()
{
int i,n,fact=1;
clrscr();
printf("Enter the number : ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
fact=fact*i;
}
printf("%d",fact);
getch();
}
This blog is mainly developed for individuals,who were interested in programming using C,C++,java and SQL.
0 comments:
Post a Comment