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

peter bought 6 mangoes at $x each. He also bought a papaya for $5. Express the total cost of the fruits in terms of x.
Why to get the area of a trapezoid do you have to measure the two basaes?
You are given n = 5 measurements: 5, 3, 3, 8, 8. (a) calculate the sample mean, x. (enter your answer to one decimal place.)
What is the engineering cycle and why is it important
write 12c + 10 as an equivalent
What anniversary did paris's exposition universelle of 1889 mark?
What does the equation y = x2 represent as a curve in the set of real numbers2?
How do you translate the quantity of three less than a number subtracted from five?
Which two body systems contribute to acid-base balance of blood?
If a substance is changing from a vapor to a liquid, like steam on a mirror, it is said to be _______. volatile condensing crystallized changing pigmentation