//Factoral Thing I made myself
#include <iostream>
using namespace std;
int main ()
{
cout << "*********************"<<endl;
cout << "*Michael F Eversberg*"<<endl;
cout << "* Factoral Solver *"<<endl;
cout << "*********************"<<endl;
int x, y;
cout << "Please Enter a whole Number: ";
cin >> x;
y = x;
for (x = x-1; x>0; x--) {
y = y*x;
}
cout << y <<endl;
system("PAUSE");
return 0;
}
I'm teaching myself C++ basics so I have a better understanding of it when I go off to college. I was on the chapter dealing with control statements and decided to make this as a review tool to review some of what I've learned so far. Tell me what you think.?