fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int i,j;
  6. for(i=0;i<5;i++)
  7. {
  8. for(j=0;j<=i;j++)
  9. {
  10. printf("*");
  11. }
  12. printf("\n");
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
*
**
***
****
*****