/***************************************************************************** * Outputs the factorial of a number * * Inputed: one int * * Outputed: int ! * * Written: November 13, 2001 * * By: Ronald Roberts * *****************************************************************************/ //Ronald Roberts //Program 41 //13NOV01 #include #include #include int main() { int num=0; double total=1; int i=0; cout<<"Please enter an integer:"; cin>>num; for (i=1; i<=num; i++) { total=i*total; } cout<