Program to find factorial of a number

swarupboro 539 views 1 slides Jan 15, 2014
Slide 1
Slide 1 of 1
Slide 1
1

About This Presentation

This is for the students of computer science for their projects


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();
}