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

If a circle is cut from a square piece of plywood, how much plywood would be left over? Use 3.14 for pi
A pizza with 2 toppings from Maria's Pizza Place costs $11.00.A pizza with 5 toppings from Maria's Pizza Place costs $14.75.Each topping at Maria's Pizza Place
What is the average of 30, 40, and 80?
A boy can swim 75 feet in 12 seconds. What is his rate to the nearest mile per hour?
The sales tax rate is 8%. Estimate the tax on a jacket that costs $69.95.
If a circle is cut from a square piece of plywood, how much plywood would be left over? Use 3.14 for pi
How do enzymes help to carry out biochemical reactions? A. By decreasing the energy of the reactants B. By increasing the activation energy of the reaction C. B
A block of mass 3 kg slides down a frictionless inclined plane of length 6 m and height 4 m. If the block is released from rest at the top of the incline, what
If 4x+5y=10 and x+3y = 8 then (5x+8y)/3=
A boy can swim 75 feet in 12 seconds. What is his rate to the nearest mile per hour?