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

bella needs identical strips of ribbon measuring 3.5 feet she has 85 feet in ribbon in total how many pieces of ribbon can she cut from this long strip
The requirements of atoms to be able to participate in hydrogen bonding with a hydrogen atom include all of the following except A. atoms must have one lone pa
What is 2a to the power of 6?
I’m koremastu vs us (1944) the Supreme Court ruled that in a time of great “emergency and peril” the internment of Japanese Americans was
Toya can run one lap of the track on 1 minute 3 seconds, which is 90% of her younger sister niki’s time. What is niki’s time for one lap of the track?
help me please????????
What will happen to density of urine when a diabetic excretes too much sugar ?
find the line parallel to y=-4x+5 and goes through the point (1,3)
how can you learn how to correctly use commonly confused words
What kind of associations do you find if you compare the data set of IQ vs. GPA with the data set of IQ vs. SAT? Are GPAs and SAT scores correlated? Explain.