write a program using nested loops to print the following pattern
Attachments:
Answers
Answered by
6
Explanation:
for (int i = 1; i <= 5; i++) { for (int j = 1; j <= 10; j++) { System.out.print("*"); ...
for (int line = 1; line <= 5; line++) { for (int j = 1; j <= (-1 * line + 5); j++) { ...
for (int line = 1; line <= 5; line++) { for (int j = 1; j <= (-1 * line + 5); j++) {
Similar questions