Computer Science, asked by pro786764, 1 month ago

wap to print the following
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5​

Answers

Answered by thapabheem110
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 shendges242
0

Answer:

rgy

Explanation:

dhhdvgddgfbdyRUstkstkwykwy

Similar questions