fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. for(int i = 0; i < 3; i++) {
  6. for(int j = 0; j < 5; j++) {
  7. if(j > i) break;
  8. else cout << '*';
  9. }
  10. cout << '\n';
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 5272KB
stdin
10
100 50 9 0
stdout
*
**
***