idjfjcjs7291 idjfjcjs7291
  • 02-12-2022
  • Computers and Technology
contestada

Write a program that accept a whole number a input, mutiplie that number by 21, and then output the product

Respuesta :

candlejenner candlejenner
  • 03-12-2022

Answer:

while True:

   try:

       whole_number = int(input("Enter a whole number: "))

       break

   except ValueError:

       print("That is not a whole number. Try again.")

product = whole_number * 21

print("The product is", product)

Explanation:

using while true and except ValueError to make sure the user enters a whole number

Answer Link

Otras preguntas

Find the t-value such that the area in the right tail is 0.005 with 28 degrees of freedom.
What is a student loan
5. What device would an elderly person most likely have trouble hearing? (Assume each sound has the same decibel level) O A. a car horn O B. a smoke alarm O C.
8) Which table shows a proportional relationship between x and y? 1 y 1 4 2 3 4 8 4 6 10 с 12 8 А 9 16 14 16 12 22 20 20 15 28 x 3 . y 5 1 12 6 10 2 14 12 D w N
what is 8.4 divided by 12?
how the media influences people​
4. Which expression is equivalent to 5(a + a + b) a. 15ab b. 10a + b c. 5a +5b d. 10a + 5b PLEASE HELP
What did people want before they would eccept the constitutuion
In Juneau, Alaska, the 30-year annual snowfall average is 86. 7 inches with a standard deviation of 40. 4 inches. The last four years saw an average annual snow
Brainliest if correct