fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>// using for command system("pause") ;
  3. #include <math.h>
  4. using namespace std;
  5.  
  6. int main() {
  7. int i=0;
  8. while (i < 10)
  9. {
  10. int k=0;
  11. while (k <= i)
  12. {
  13. printf("*");
  14. k++;
  15. }
  16. printf("\n");
  17. i++;
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
*
**
***
****
*****
******
*******
********
*********
**********