Skip to main content

Factorial of given number

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i,fac=1,num;
printf("Enter the number:");
scanf("%d",&num);
for(i=1;i<=num;i++)
fac=fac*i;
printf("Factorial of given Number = %d"fac);
getch();
}

Comments

Popular posts from this blog