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

What type of phrase
0.12k = 10.08 dfergyhbjiuhgyvhbjnkuhgyfvgytfc
3. when you don't know when you will see them next?
Which point of view are you most likely to find in an autobiographical or personal narrative? A. third-person omniscient B. third-person limited C. objective
Last winter, the Kranepool family used 431 gallons of heating oil at a price of $4.12 per gallon. If the price increases 8.25% next year, what will their approx
Salivary amylase is an enzyme that breaks down starch. The optimum or best pH for this reaction is 6.7. Which of the following would not have an effect on a rea
Sunland Company shows the following balances in selected accounts of its adjusted trial balance:____ Supplies $30,100 Ser
is adding hydrochloric acid to milk a physical or chemical change?
Match the folowing items
What does the Selective Service Act say about the current military? It should be increased to maximum size. It should be equipped in small increments. It shoul