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

How do you become an informed citizen?
how are simple cations and anions named ?
A cell phone plan uses a fixed charge of $20 per month plus 10 cents for each minute used to calculate the total bill. The total bill, t, can be expressed in te
When a recessive trait is on the X chromosome: Answer males will never express it females will always express it males can express it more often than females wi
Which words in the sentence are the complete infinitive phrase? To read several good books is my goal for the next month. A. to read B. several good books C. to
Read this excerpt from Narrative of the Life of Frederick Douglass, an American Slave. My Dear Friend: You remember the old fable of "The Man and the Lion," whe
how is the volume of the cone related to the volume of the cylinder
How do octopus use Newton's third law of motion to escape from enemies
What were some things settlers hoped to find in the New World?
What is the least common multiple of 12, 20, and 18?