#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
int num,fact;
cout<<"enter the number to find factorial"<<endl;
cin>>num;
fact=num;
num=num-1;
while(num>0)
{
fact=fact*num;
num=num-1;
}
cout<<"factorial is:"<<endl<<fact<<endl;
system("pause");
getch();
}
And what your problem is?
So why do you post ineffective, error-prone, badly formatted code which uses practices everyone advises against?
its not ur concern wether i upload any program or not...