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