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

Original Price: ? Percent of Discount: 5% Sale Price: $57 What is the original price?
The answer with the work please
What is a form of Irony used in the Gettysburg address?
Answere 1-6 And 7-8 PLEASE help please
Please help not good at this :(:
A jar contains 6 chocolate chip cookies and 9 peanut butter cookies. Richard grabs 3 cookies at random to pack in his lunch. What is the probability that he dre
Find an equation of a parabola with a vertex at the origin and directrix X = 2.5
Perry was going to sell all of his stamp collection to buy a video game. After selling half of them he changed his mind. He then bought fifteen more. How many d
4ft = ?m PLEASE HELP ME
Select all that apply. Which of the following will increase a telescope's magnification? 1) decrease aperture 2) increase objective focal length 3) decrease ob