following program will find out the factorial number of a given number.

[ #include#include void main() { int num,factnum,I; factnum=1; printf(“Enter Number To Findout Factorial Number”); scanf(“%d”,&num); for(i=1;i<=num;i++) { factnum=factnum*i; } printf(“Factorial Number Of Entered Number is:%d”,factnum); getch(); }]

**output:**

Enter Number To Findout
Factorial Number:5

Factorial Number Of Entered
Number is:120

## 0 comments: