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

Angles θ and Φ are supplementary, and theta equals 3pi/7 find the measure of theta
Which of these would be the end of meiosis I and the beginning of meiosis II? A) Mature ovum B) Polar bodies C) Primary oocyte D) Secondary spermatocytes
Write an equation of the line that has a slope of 5 and y-intercepts 3 in slope-intercept form.
ANSWER BOTH QUESTIONS IF U CANT SEE THE CHOICES ITS FINE! ALL U NEED IS THE QUESTION
What was the north's plan for winning the civil war?
Express 0.00049386 in scientific notation.
x^2+4x-11 in vertex form by completing the square
What good news dose shylock get in act 3 scene 1
The correct symbol for the ion formed by nitrogen is:
please help me..stuck on problem.