0

How do I use the bar chart style to illustrate an asterisk for each number?

https://code.sololearn.com/c0Xtbj8U3nJS/?ref=app

16th Apr 2023, 12:28 AM
Makhumo Mashishi
Makhumo Mashishi - avatar
2 Antworten
+ 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("*"); }
16th Apr 2023, 4:30 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Thank you
16th Apr 2023, 9:44 AM
Makhumo Mashishi
Makhumo Mashishi - avatar