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

Why are heroes so important to understanding the universal psyche of humans
Which of the following sentences would most likely come LAST in a paragraph? A. One day Samantha decided to go shopping. B. All in all, Samantha spent ove
Greta’s family drinks 3 1/4 quarts of milk and 1 5/6 quarts of juice in one week. About how much more does Greta’s family drink in one week
was nationalism a cause of world war 1?
How do The thickness and darkness of glass affect the amount of light that is transmitted
A coelom is a body cavity A. Completely lined with mesoderm B. Partially lined with mesoderm C. Without mesoderm D.partially lined with endoderm
5 50/100 - 2 72/100= ​
What part of speech is condradict.
how is the value used in this artworkit has black white and gray colorsit has intermediate colorsit has complementary colors it has warm colors
PLEASE HELP ME!!!!!!!!!!! PLZ