#include
#include
void main()
{
int no,i,fact=1;
clrscr();
printf("\n Enter The No :- ");
scanf("%d",&no);
for(i=no;i>=1;i--)
{
fact=fact*i;
}
printf("\n factorial of this number is :- %d",fact);
getch();
}
this blog is for the new programmer in programing field...
1 comments:
Post a Comment