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

This illustration shows the process of making a protein molecule. The site of protein synthesis in a cell is the ______________ A) amino acid B) codon C) ribo
What is4 3/4 as a improper fraction
given f(x)= -x+15, what is f(-3) A.-45 B.12 C.18 D.45
one check that the executive branch has over the legislative branch
At a store, there are 5 vases. Each vase has the same number of flowers. Sixteen flowers are sold. Now there are 24 flowers left. How many flowers were in each
How many seconds are there in 23 days ?
can someone answer my this for me??? i dont understand
What is all the factors of 48
What is the goal of all economic decisions in a market economy?
Who were two authors who used satire to instruct the newly-educated masses?