#include <iostream> 
using namespace std; 
  
int main() 
{ 
  int n; // output this many rows 
  cout << "How many rows to output? "; 
  cin >> n; 
  cin.ignore(1000, 10); 
  for (int i = 0; i < n; i++) // outer loop 
  { 
    for (int j = 0; j < (i + 1); j++) // inner loop 
      cout << '*'; 
    cout << endl; 
  } // for 
} // main 
