Question: 5. (4 pt) Convert the following program (including do-while loop) into an equivalent program that includes a while loop 1 I Scanner console = new
5. (4 pt) Convert the following program (including do-while loop) into an equivalent program that includes a while loop 1 I Scanner console = new Scanner(System.in); String input; char sure: dot input- console.next(); sure = input.charAt(0); while(sure = 'Y' & sure != 'N')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
