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