0
How do I use the bar chart style to illustrate an asterisk for each number?
2 Réponses
+ 3
Use a for loop to print a character as many times as needed.
System.out.print("Player 1 score: ");
for (int x=0; x<a; x++) {
System.out.print("*");
}
+ 1
Thank you