Question: Code a do-while loop that keeps printing the message I have to mind my teacher! as long as the student keeps misbehaving in class. Assume
Code a do-while loop that keeps printing the message I have to mind my teacher! as long as the student keeps misbehaving in class. Assume misbehaving and input (for the Scanner class) are already declared. The variable misbehaving has been initialized to y and its the loop-control variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
