Code:
#include<stdio.h>
void main(){
int n,i,j,k;
printf("ENTER THE NUMBER\n");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
printf("%d",j);
for(k=j-2;k>0;k--)
printf("%d",k);
printf("\n");
}
}

Last edited by shabbir; 3Aug2012 at 18:52.. Reason: Code blocks