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

Help me write a sentence using health-care and first-class. I need two separate sentences.
What determines the value of an item
The Lend-Lease Act was an attempt by the United States to a. stay out of World War I. b. supply iron and oil to Japan. c. divide land acquired from the Mexic
Which statement correctly describes a physical change? a. involves breaking and creating chemical bonds but not changing a phase b. may involve a change in ph
After the passage of the Civil Rights Act, civil rights activists wanted a. to overturn the Fifteenth Amendment. b. overturn the Twenty-Fourth Amendment. c. ele
what is the best way to overcome imagined risks
Do you think the colonist or the british gave the intolerable acts their name
What was the German bombing of London
i need help with this
Why has the house of representatives grown so much faster than the senate?