Author: Sanif S S
Site: theeduzone.blogspot.com
Email: sanifss@gmail.com#include<stdio.h>
#include<conio.h>
{
int i,f=1,num;
int i,f=1,num;
clrscr();
printf("Enter a number: ");
scanf("%d",&num);
for(i=1;i<=num;i++)
{f=f*i;}
printf("Enter a number: ");
scanf("%d",&num);
for(i=1;i<=num;i++)
{f=f*i;}
printf("Factorial of %d is: %d",num,f);
getch();
}
getch();
}
No comments:
Post a Comment