Question: A while loop reads integers from input into variable inputVal. Write an expression that executes the while loop until a negative integer is read into
A while loop reads integers from input into variable inputVal. Write an expression that executes the while loop until a negative integer is read into inputVal.
Click here for example
Note:
First, delete the comment Your code goes here Then, insert your expression for the while loop condition.
Your expression should describe when the loop should iterate, not when the loop should terminate.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
