Question: Suppose in a C + + program values are assigned to a string variable name and to a float variable amount. Then a while loop
Suppose in a C program values are assigned to a string variable name and to a float variable amount. Then a while loop is entered. The loop has to be executed as long as
name is not equal to "NOBODY" and
amount is not less than
Which of the options below gives a correct condition for the loop?
name "NOBODY" && amount
name "NOBODY"amount
name "NOBODY" && amount
name "NOBODY" && amount
None of the options above is a correct condition.
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
