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

Write a conjecture to save 30$
A cylindrical barrel has a radius of 7.6 ft. and a height of 10.8 ft. Tripling which dimensions will triple the volume of the barrel?
who can find the solution for this???? 4x=6(x-4)
Why was the neolithic revolution a turning point?
During phase 3 of the 3-x-3 writing process, jamar is correcting his document’s grammar, spelling, punctuation, format, and mechanics. what is jamar doing?
What right has become an important part of the American democracy ever since the complaint was written
what odysseus feelings in line 17-25
Help (the cut off sentence says "of" at the end)
A line with a slope of 1/2 passes through the point (2,-1). What is the equation of this line ?
Greg is riding his bicycle. He rides 38.4 kilometers in 6 hours. What is his speed?