I am new in Java and am really struggling with a this problem:
Use nested loops that print the following patterns as shown:
Pattern 1 Pattern 2 Pattern 3 Pattern 4
1____________1 2 3 4 5 6 ___________ 1______1 2 3 4 5 6
1 2 __________1 2 3 4 5 ____________2 1_______ 1 2 3 4 5
1 2 3 ________1 2 3 4 ____________3 2 1__________1 2 3 4
1 2 3 4_______1 2 3 ____________4 3 2 1___________1 2 3
1 2 3 4 5_____ 1 2 ____________5 4 3 2 1____________1 2
1 2 3 4 5 6____1_________ ___ 6 5 4 3 2 1______________ 1
if somebody can help me..I would appreciate very much
Use nested loops that print the following patterns as shown:
Pattern 1 Pattern 2 Pattern 3 Pattern 4
1____________1 2 3 4 5 6 ___________ 1______1 2 3 4 5 6
1 2 __________1 2 3 4 5 ____________2 1_______ 1 2 3 4 5
1 2 3 ________1 2 3 4 ____________3 2 1__________1 2 3 4
1 2 3 4_______1 2 3 ____________4 3 2 1___________1 2 3
1 2 3 4 5_____ 1 2 ____________5 4 3 2 1____________1 2
1 2 3 4 5 6____1_________ ___ 6 5 4 3 2 1______________ 1
if somebody can help me..I would appreciate very much
Comment