please find the logic for this pattern in java programming
Attachments:
Answers
Answered by
1
Answer:
Using multiple arrays
Explanation:
You have to create 5 rows and 3 columns, make an array for each row and reverse the alternative arrays.
For example:
[ [1, 2, 3], [6, 5, 4], [7, 8, 9], [12, 11, 10], [13, 14, 15] ]
You can loop over this array and print each in a new line to get the pattern.
Similar questions
Hindi,
5 months ago
Chemistry,
5 months ago
India Languages,
10 months ago
Math,
10 months ago
Hindi,
1 year ago