Code for PROGRAM TO COMPUTES AND PRINTS A TABLE OF FACTORIALS OF ANY GIVEN M in C Programming
#include <stdio.h>
#include <conio.h>
#include<math.h>
void main()
{
int n,m;
long s=1;
clrscr();
printf("Enter the No :- ");
scanf("%d",&m);
for(n=m;n>1;n--)
{
s=s*n;
}
printf("\nThe Factorial of Given Number is = %ld\n",s);
getch();
}
/*
********
OUTPUT
********
Enter the No :- 9
The Factorial of Given Number is = 362880
*/