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

các acit amin liên kết với nhau bằng liên kết gì
the heart in human consists of dash chambers comprising dash and dash​
To get a c in history, Nandan must average 72 on four tests. Scores on the first three tests were 65, 77, and 60. What is the lowest score Nandan can get on the
difference and similarities between legend, folk tales, and epic
Galapagos penguin can walk 1/3 mile in an hour. How many hours would it take the penguin to walk 3/4 mile
Expand. Your answer should be a polynomial in standard form. -4w(w^2-9)=
Experimenters arranged for participants to experience subliminal recordings designed to help them lose weight. According to the research, the recordings will a.
how the global population was affected by the Industrial Revolution
100 points and brainliest to the one who answers it correctly :]
what is the mass of 3.8 mol of the element iron(Fe )?