Computer Science, asked by Mahevishraza, 8 months ago

write a program using nested loops to print the following pattern​

Attachments:

Answers

Answered by zack1706
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