fork(1) download
  1. #include<stdio.h>
  2. int main(){
  3. int i,j,n;
  4. scanf("%d",&n);
  5. for(i=1;i<=n;i++){
  6. for(j=i;j>=1;j--){
  7. printf("%d ",j);
  8. }
  9. printf("\n");
  10. }
  11.  
  12. return 0;
  13.  
  14.  
  15.  
  16. }
Success #stdin #stdout 0.01s 5316KB
stdin
5
stdout
1 
2 1 
3 2 1 
4 3 2 1 
5 4 3 2 1