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