Code:
int i=1,j=1;

do {
   printf("%i",i);
   i++;
do {
   printf("\n");
   j++;
}while(j<=i);
}while(i<=5);