Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int size;
  7.     cin >> size;
  8.    
  9.     for(int row = 1; row <= size; row++) {
  10.        
  11.         int numColumns = row;
  12.         for(int col = 1; col <= numColumns; col++) {
  13.             cout  << "*";
  14.         }
  15.        
  16.         cout << endl;
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement