Skip to content

Instantly share code, notes, and snippets.

@anjnlz
Created March 6, 2012 06:14
Show Gist options
  • Save anjnlz/1984024 to your computer and use it in GitHub Desktop.
Save anjnlz/1984024 to your computer and use it in GitHub Desktop.
Factorials
#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