romarios4469 romarios4469
  • 01-10-2020
  • Computers and Technology
contestada

What is another way that the condition below could be written? ​ ( num <= 10 )

Respuesta :

tostuti
tostuti tostuti
  • 01-10-2020

Answer:

 ( (num < 10) || (num = 10) )

Explanation:

Here we have the condition as num <= 10 which means the condition gets satisfied till less than 10 i.e., (9) and condition also gets satisfied when the num is equal to 10 .

We can get same result using ( (num < 10) || (num = 10) ) because in OR when either of the input is true the output is true .

Answer Link

Otras preguntas

Which of the following was NOT a recognized kingdom in Linnaeus' early classification system?
graph the equation to solve the system y=1/2x+7 y=1/2x+5 A) NO SOLUTION B)SOLUTIONS ALL NUMBERS ON THE LINE C) 0,7 D)2,6
Which sentences in the passage are grammatically correct? 1. Mahatma Gandhi was the most important leader in Indias history; Originally A Lawyer, he left behind
At what age does Tewolde go into business for himself?
Which term best describes this reaction? condensation polymerization addition polymerization hydrohalogenation hydration
When the decibel level of traffic in the street goes from 40 to 60 db, how much greater is the intensity of the noise?
What is 100-3,000x=100000
Solve this system of linear equations. Separate the x- and y- values with a comma. 9x=48-6y 5x=8+6y
Can you run for president if you were not born in the us
Who is tje president of mexicos political partyy