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

In contrast to the roman empire, the process of empire formation in china _____ .
The Stamp Act, enacted by Parliament in 1765, was the first law that taxed the American colonists
Why do you think slavery was so much more prominent in the greco roman civilization than in india or china?
What are the elements of a national literature?
Jon is abusing a drug to gain muscle mass. Which drug is Jon most likely abusing
Two mathematically similar frustums have heights of 20cm and 30cm. The surface area of the smaller frustum is 450cm². Calculate the surface area of the larger
What is the contrapositive of the conditional statement? If two variables are directly proportional, then their graph is a linear function.
A nurse is caring for an infant who has just undergone myelomeningocele repair. what should the nursing plan of care include
is that ok?? i just want to make sure, thanks
If m <5=42, what is m <4? A.42 B.48 C.128 D.138