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