fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int row, col;
  5.  
  6. for(row=7; row>=1; row--){
  7. for(col=1; col<=row ; col++){
  8. printf("%d ", row);
  9. }
  10. printf("\n");
  11. }
  12. }
Success #stdin #stdout 0.01s 5284KB
stdin
45
stdout
7 7 7 7 7 7 7 
6 6 6 6 6 6 
5 5 5 5 5 
4 4 4 4 
3 3 3 
2 2 
1