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

Mr. Stephenson drives his car from Dallas to Town X, a distance of 437 km. The trip takes 7.27 hours. What is the average speed of this trip in meters per secon
Someone help me please!!
Which describes our understanding of flowing water on mars?
Describe, with examples of your own, when you would use long division and synthetic division and how to check polynomial division.
why did the US join world war 1
Which of the following can act as a diuretic? (1 point)Water Milk Coffee Chamomile tea
Complete each paragraph with the correct type of external conflict. 1. Tim and Jay set off to go camping, but there was a forest fire. So they had to come back
if a binomial event has a probability of success of 0.3, how many successes would you expect out of 2000 trials
What Is Statistical Analysis used for?
Stalin made a secret ______ with Germany called the Nonaggression Pact. A. present for Mexico B. deal or agreement C. language D. word peace declaration