# Suppose two integers num1 and num2 have previously been defined and assigned values. give a while statement that keeps running so long as neither num1 or num2 is equal to -1. you do not need to provide the body of the while statement, just a properly formatted while statement and its contituation condition

Question
1 views

Suppose two integers num1 and num2 have previously been defined and assigned values. give a while statement that keeps running so long as neither num1 or num2 is equal to -1. you do not need to provide the body of the while statement, just a properly formatted while statement and its contituation condition

check_circle

Code statement:

//declaring and assigning the values

int num1=10;

int num2=20;

//condition for while statement

while((num1==-1)||(num2==-1))

{

//Statement

}

Explanation:

In the above statement, the variable “num1” and “num2” are declared as “int”. It...

### Want to see the full answer?

See Solution

#### Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in