subject
Computers and Technology, 21.09.2020 16:01 yessy73

For this assignment, you will first prompt the user and read in two numbers from them. You need to check and make sure that both numbers are equal to or greater than 0 (can use an if or if/else statement for this). If so, multiply the two numbers together and print the new value to the screen. If the user enters a number lower than 0, remind the user that they need to enter a number greater than or equal to 0 and exit the program.
Sample Runs
Sample Program Run (user input is underlined)
Please type in two numbers: 100 250
100 * 250 = 25000
Exiting program.
Please type in two numbers: -1 27
Please only enter numbers >= 0.
Exiting program.
(Here's an alternative way to do the same thing:)
Please type in one number: 100
Please type in a second number: 250
100 * 250 = 25000
Exiting program.
Please type in one number: -1
Please type in a second number: 27
Please only enter numbers >= 0.
Exiting program.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 24.06.2019 16:50
Ideally, the backrest is tilted back slightly, so when you turn the wheel your shoulders are the seat.
Answers: 2
question
Computers and Technology, 24.06.2019 20:30
⭐️⭐️⭐️ what network is larger in size? man or wan? you ⭐️⭐️⭐️
Answers: 2
You know the right answer?
For this assignment, you will first prompt the user and read in two numbers from them. You need to c...
Questions
question
Mathematics, 04.03.2021 18:00
question
Geography, 04.03.2021 18:00
question
Mathematics, 04.03.2021 18:00
question
Mathematics, 04.03.2021 18:00
Questions on the website: 13722363