Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int size;
- cin >> size;
- for(int row = 1; row <= size; row++) {
- int numColumns = row;
- for(int col = 1; col <= numColumns; col++) {
- cout << "*";
- }
- cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement