0

How many times will the following loop work? int x = 0; int y = 5; while (x < y) { System.out.println("Hello"); x++; }

Help

5th May 2022, 6:00 AM
jayson abion
5 Réponses
+ 4
Please specify a programming language name related to your query in the "Relevant Tags".entry.☝ https://code.sololearn.com/W3uiji9X28C1/?ref=app
5th May 2022, 6:12 AM
Ipang
+ 2
jayson abion Why don't you run this code for yourself in the playground, and discover the answer for yourself.
5th May 2022, 8:52 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
jayson abion Print x value and see how many times it printing... Oh.. You can see how many times hello printing...
5th May 2022, 9:05 AM
Jayakrishna 🇮🇳
0
Answer is 5
16th Dec 2023, 11:58 AM
Mas'ud said Mohammed
- 1
Help
5th May 2022, 6:00 AM
jayson abion