fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. for (int i = 1; i <= 5; i++) {
  6. for (int j = 1; j <= i; j++) {
  7. cout << "*";
  8. }
  9. cout << endl;
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
*
**
***
****
*****