This is for the students of computer science for their projects
Size: 18.44 KB
Language: en
Added: Jan 15, 2014
Slides: 1 pages
Slide Content
//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();
}