fork 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=1;j<=i;j++){
  7. printf("%d",n-i+1);
  8.  
  9. }
  10. printf("\n");
  11. }
  12.  
  13. return 0;
  14.  
  15.  
  16.  
  17. }
Success #stdin #stdout 0.01s 5312KB
stdin
5
stdout
5
44
333
2222
11111