Ask Question

Which is a correct way to test whether two variables representing numbers, numOne and numTwo, are equal?

+3
Answers (1)
  1. 18 August, 16:15
    0
    Intital value of variable "NUM" is 10 when while loop execute for the first time, it check the condition (num<10) and founds this FALSE. So the statement inside execute if while loop doesn't execute then it will not going to change the value of "NUM ". That is why the value of "NUM" will remain same i. e NUM 10
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which is a correct way to test whether two variables representing numbers, numOne and numTwo, are equal? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers