fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.  
  5. for(int m=0;m<=4;m++){
  6.  
  7. for(int n=0;n<=m;n++){
  8.  
  9. printf(" ");
  10.  
  11. }
  12.  
  13. for(int a=0;a<9-m*2;a++){
  14.  
  15. printf("*");
  16.  
  17. }
  18.  
  19. printf("\n");
  20.  
  21. }
  22.  
  23. return 0;
  24.  
  25. #include <stdio.h>
  26.  
  27. int main(){
  28.  
  29. for(int i=0;i<=4;i++){
  30.  
  31. for(int j=0;j<=4-i;j++){
  32.  
  33. printf(" ");
  34.  
  35. }
  36.  
  37. for(int k=0;k<=i*2;k++){
  38.  
  39. printf("*");
  40.  
  41. }
  42.  
  43. printf("\n");
  44.  
  45. }
  46.  
  47. return 0;
  48.  
  49. }}
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
 *********
  *******
   *****
    ***
     *