fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int row, c, n, temp;
  6.  
  7. printf("15 ");
  8. scanf("%d",&n);
  9.  
  10. temp = n;
  11.  
  12. for ( row = 1 ; row <= n ; row++ )
  13. {
  14. for ( c = 1 ; c < temp ; c++ )
  15. printf("15");
  16.  
  17. temp--;
  18.  
  19. for ( c = 1 ; c <= 2*row - 1 ; c++ )
  20. printf("*");
  21.  
  22. printf("\n");
  23. }
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
15