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