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 figure is a square then it is a regular quadrilateral is this true or false
Which number is a factor of both 20 and 35?
What causes tectonic plates to move
estimate the product of 68 and 42
What type of lifestyle did the Mongols live? A. pastoral nomadic B. hunter-gatherer C. agricultural D. sedentary
)Which phrase characterizes the way both sides fought World War I? A They sent large armies to occupy heavily fortified defensive positions. B They relied
Someone help! you have 44 text messages in your inbox. How many messages can your cell phone hold? (and inbox is 88% full)
What are disadvantages and advantages of parallel circuits
4x squared + 7x +2=0 use quadratic formula
if f(x)+=1/2 2- 4x, what is the value of f(8)? a) 0 b)-28 c) 96 d) 32 pd: 1/2 is times 1/2 no is 1/22