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

Ratio equal to the ratio given 12:7
Patrick ate 3/5 of a small pizza on Friday night. For lunch on Saturday , he ate 1/2 of the leftover pizza. How much pizza did he eat for lunch on Saturday?
Explain why the gravitational acceleration of any object near earth is the same matter what was the mass of the object
The novel Uncle Tom’s Cabin, which effectively the unfairness toward black people, was a major influence in the antislavery movement. (A) portrayed…strengthenin
Select the simplified expression for 8(x - 4) - 4(x - 3) + 7x. 11x + 4411x - 711x - 4411x - 20
Give 3 examples to show work being done.
How many union ships did the Virginia sink?
Alison wants to find out how much time people spend reading books. She is going to use a questionnaire. Design a suitable question for Alison to use in her ques
What was the Islamic Golden Age?
If y=2 when x=3. What is the value of y when x=9?