wap to print the following
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Answers
Answered by
2
Answer:
public class KboatPattern
{
public void displayPattern() {
int a = 1;
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= i; j++) {
System.out.print(a++ + "\t");
}
System.out.println();
}
}
}
Answered by
0
Answer:
rgy
Explanation:
dhhdvgddgfbdyRUstkstkwykwy
Similar questions
Math,
29 days ago
Computer Science,
29 days ago
Math,
29 days ago
Business Studies,
1 month ago
Math,
1 month ago
World Languages,
9 months ago
Math,
9 months ago