-
-
Save anjnlz/1984024 to your computer and use it in GitHub Desktop.
Factorials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
void main () | |
{ | |
int iNum = 1; | |
for (iNum = 1; iNum < 8; iNum++) | |
{ | |
cout << iNum << "! = " << iNum << " which is equal to " << iNum * iNum << endl; | |
} | |
cout << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment