#include using namespace std; unsigned int Factorial(unsigned int n); int main() { for( unsigned int i = 0; i < 10; ++i) { cout << "factorial(" << i << ") = " << Factorial(i) << endl; } return 0; } unsigned int Factorial(unsigned int n){ unsigned int answer = 1; if (n > 1) { answer = n * Factorial(n-1); } return answer; }