answersLogoWhite

0


Best Answer

Implement this method:

public static void makeTriangle(int limit) {

int count = 0;

for(int i = 1; i <= limit; i++) {

count = i;

while(count > 0) {

System.out.print(i);

count--;

}

System.out.println();

}

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 1 22 333 4444 55555 i need a java program that generates a triangle with these numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp