When I get home, I have a small class and a couple algorithms that plug into the class that I can show. I might have to write the algorithms again though.
Should be something like:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <iostream>
usingnamespace std;
int main()
{
for (int i = numLines; i => 0; --i)
{
endl; //Skip down a line and...
for (i = numLines; i > 0; --i)
{
cout << " "; //...get smaller each time.
}
//Number algorithm here.
}
}
EDIT: Never mind, I don't have it anymore. I could rewrite though...