#include<stdio.h>
#include<conio.h>
int main()
{
int f, N;
printf(“Enter the integer to find factorial: “);
scanf(“%d”, &N);
for(f=1; N>=1; N–)
{
f=f*N;
}
printf(“The factorial is %d.”, f);
getch();
return 0;
}
#include<stdio.h>
#include<conio.h>
int main()
{
int f, N;
printf(“Enter the integer to find factorial: “);
scanf(“%d”, &N);
for(f=1; N>=1; N–)
{
f=f*N;
}
printf(“The factorial is %d.”, f);
getch();
return 0;
}