Goal:
1234
2345
3456
4567
5678
i have the pattern down but it doesnt println after length(4):
int i;
int a;
for (i = 1; i <= 5; i++)
{
for (a = i;a<=i+3;a++)
{
System.out.print(a);
}
}
My output is: 12342345345645675678