fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int i,j;
  5. for (j=1;j<=5;j++)
  6. {
  7. for (i=1;i<=5;i++)
  8. {
  9. if (i+j>=6)
  10. {
  11. printf("*");
  12. }
  13. else
  14. {
  15. printf(" ");
  16. }
  17.  
  18.  
  19.  
  20.  
  21. }
  22. printf("\n");
  23. }
  24.  
  25.  
  26.  
  27.  
  28.  
  29. return 0;
  30. }
  31.  
  32.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
    *
   **
  ***
 ****
*****