Skip to content

Instantly share code, notes, and snippets.

@mando
Forked from anjnlz/gist:1983732
Created March 6, 2012 05:24
Show Gist options
  • Save mando/1983789 to your computer and use it in GitHub Desktop.
Save mando/1983789 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <iomanip>
using namespace std;
void main ()
{
int iNum, i = 0;
while (i < 5)
{
cout << "Please enter a number: ";
cin >> iNum;
cout << setfill ('*') << setw(iNum) << left << "" << endl;
i = i++;
}
cout << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment