Hello guys i need help on my program factoring.... i have the progam here but the bad news is it is been giving me -3242 or infinite number as an output... I already been so busy changing any thing but i cant make the output correct the way it should be... please help me where have i gone wrong :?:? Thank you very much....
#include<iostream.h>
#include<conio.h>
main()
{
int num;
cout<<"Enter a Number:"<<endl;
cin>>num;
while (num>=1)
{
num*=num;
num--;
}
cout<<"The Factor is:"<<num<<endl;
getch();
return 0;
}