Question: What is wrong with the following code segment if the numbers from 1 to 10 are meant to be output? int num = 0;
What is wrong with the following code segment if the numbers from 1 to 10 are meant to be output? int num = 0; while (num >10){ num = num + 1; System.out.println(num); }
Step by Step Solution
3.42 Rating (155 Votes )
There are 3 Steps involved in it
The issue with the code segment is in the condition ... View full answer
Get step-by-step solutions from verified subject matter experts
