fork download
  1. #include <iostream>
  2.  
  3.  
  4. int main() {
  5. const int N = 10;
  6. for( int rows = 0; rows < N; ++rows )
  7. {
  8. for( int columns = 0; columns < rows + 1; ++columns )
  9. {
  10. std::cout << '*';
  11. }
  12. std::cout << std::endl;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
*
**
***
****
*****
******
*******
********
*********
**********