add the following 3 digit and 1 digit number 567 and 8
Answers
Answered by
0
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();
}
}
}
Step-by-step explanation:
Similar questions