samueltpersaud samueltpersaud
  • 17-07-2022
  • Computers and Technology
contestada

If userNum1 is less than 0, put "userNum1 is negative.\n" to output. If userNum2 is greater than 10, assign userNum2 with 0. Else, put "userNum2 is less than or equal to 10.\n".

Respuesta :

rdacoder
rdacoder rdacoder
  • 17-07-2022

Answer:

I don't know what language you want this in, but I will do it in c++. Let me know if you want it in another language.

if (userNum1 < 0) {

 cout << "userNum1 is negative" << endl;

}

else if (userNum2 > 10 {

 userNum2 = 0;

} else {

 cout << "userNum2 is less than or equal to 10";

}

Answer Link

Otras preguntas

Which of the following statements is subjective? Blue is a color. Two plus three equals five. Chocolate is the best ice cream flavor. George Washington was the
Communication skills are unimportant in today’s technologically advanced world. a. True b. False
Which of the following events can produce an earthquake?
What is the process by which light energy from the sun is converted to food?
why would you use a dichotomous key for a particular genus to find the specific epithet of a species
What is the term used to describe the minimum level of stimulus required to activate a neuron? a. Action potential b. Threshold c. Resting potential
Whic of the following is the least informative property of a mineral. color, luster, streak or cleavage?
The function f (x) is given by the set of ordered pairs 1,0 (-10,2), (0,6) (3,17) (-2,-1) which equation is true f(-10)=1 f(2)=-10 f(0)=6 f(1)=-10
a single event in a story is a
The Great Depression only effected the US and Great Britain. A True B False. It was a worldwide depression.