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