Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Hello world!" << endl;
- int a[5];
- int i=0;
- int x=1;
- int c=0;
- cin >> a[0];
- cin >> a[1];
- cin >> a[2];
- cin >> a[3];
- cin >> a[4];
- while (c < 15)
- {
- while (i < 5)
- {
- if (a[i] >= x)
- {
- cout << "*" ;
- }
- if (a[i] < x)
- {
- cout << " " ;
- }
- i++;
- }
- cout << endl;
- i=0;
- c=c+1;
- x=x+1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement