Created
March 6, 2012 05:12
-
-
Save anjnlz/1983732 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
#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