I have a bit of a problem here, and is a 50pts problem for college...
Is not that hard but ive beaten myself to death with it, and cant come up with it.
The professor gave us a few hints to make a program that factorizes a number until lvl 5.
i came up with this:
long double factorial=1;
cout<<"Input a number:";
factorial=factorial * counter;
counter=counter + 1;
cout<<"The Factorial of"<<numero<<"is:"<<fixed<<setprecision(0)<<factorial<<endl;
This factorizes example 5 to 120.
But now i have to find a way that it displays the whole process of the factorization.
Example i need it to display (with number 5)
and stops in lvl 5.
if anyone can help me or point me in the right direction, please it would be most appreciated.