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

6. Calculate the compound interest on investing $600.00 for 2 years at 7% per year.​
Find the area of the composite figure made up of a square and a semicircle. Use 3.14 as an approximate for pi and give your nearest square inch. Enter only the
ayuda es para ahorita​
which of the following is the best definition for "logical?" A. careful and slow B. unemotional; dull C mathematical D makes sense​
why did christopher columbus want to find a route to the indies? .to make the queen happy .to write a book about navigation .to find a new world .to get gold an
Which statement was one of Thomas Paine's arguments for independence?
What is the orbital period of a spacecraft in a low orbit near the surface of mars? the radius of mars is 3. 4×106m.
Some fungal species live in or on plants, producing compounds that can kill herbivores while feeding off of sugars from its plant host. What type of relationshi
How to calculate specific heat.
How many racial categories did the 1850 u. S. Census make available?.