java program to print
12345
22345
33345
44445
55555
Answers
Answered by
0
Answer:
55555 is your answer
hope it helps. . .
Answered by
0
Answer:
import java.util .*;
public class Pattern {
public static void main() {
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= 5; j++) {
if (j <= i) {
System.out.print(i + " ");
} else {
System.out.print(j + " ");
}
}
System.out.println();
}
}
}
Explanation:
Similar questions
Biology,
5 months ago
English,
5 months ago
Math,
10 months ago
Math,
10 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago