Thank you virxen so much

I tried the second but I couldn't get the right answer

Code:

#include <stdio.h>
int main(){
for (int i=0;i<4;i++){
printf("\n");
for (int j=0;j<(i+1);j++)
printf("%d",(i+j+1));
}
getchar();
return 0;
}

and I got the output as

1

23

345

567

instead of getting

1

23

345

6789

can anyone help me to correct my answer