All pastes #522265 Raw Edit

Someone

public text v1 · immutable
#522265 ·published 2007-05-30 11:15 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>

int main(){
    int x,i,j;
    x = -1;
    
    while(x > 9 || x <= 0){
        printf("Dame un numero del 1 al 9 : ");
        scanf("%d",&x);
        fflush(stdin);
        }
    
    
    for(i=0;i<=x;i++){
       for(j=0;j<=i-1;j++){
          printf("%d",i);
       }
       printf("\n");
    }
    
    for(i=x-1;i>0;i--){
      for(j=i;j>0;j--){
         printf("%d",i);
       }
       printf("\n");
    }
    printf("\n");                      
    system("pause");
    
}