fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int N;
  6. cin >>N;
  7.  
  8. for(int i=0; i<N; i++){
  9.  
  10. for(int j=0; j<i; j++){
  11. cout << "*";
  12. }
  13.  
  14. cout<<endl;
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5296KB
stdin
6
stdout
*
**
***
****
*****