Salient Features of India constitution especially power and functions
Program to find factorial of a number
1. //Program to find factorial of a number
#include<iostream.h>
#include<conio.h>
void main()
{
int i, num, fact=1;
cout<<"n Enter the integer";
cin>>num;
i=num;
while(num)
{
fact= fact*num;
--num;
}
cout<<"n Factorial"<<fact;
getch();
}