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

Looking for some assistance with a Finance question.
Does anybody know the answer to these two questions ?
Were the Alien and Sedition Acts constitutional or unconstitutional? Did they follow the meaning of the Constitution or did they violate it in some way? Be prep
Which statement describes how the outcome of the Battle of Midway impacted World War II? (1 point) The U.S. victory allowed the navy to advance across the Paci
A reader looks at the __in a piece of writing to determine tone
There are _____ progressive verb forms in english
Marguerite says that she does not need the shielding of her culturally exclusive african american community because of what new found characteristic? a. fear
What does "eotteoke jinnaeseyo" mean? (korean)
Although a marketing information system primarily serves the​ company's marketing and other​ managers, it might also provide information to external​ partners,
How does food relieves hunger and improvewellness?