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

which of the following suggestions can help you start a job productively
7,000lbs times what would equal 3.5 tons
The lowest elevation in the world is in the Dead Sea at 413 feet below sea level. The highest elevation in the world is Mount Everest at 29,035 feet above sea l
simplify. (8a^3 - 3b^2) - (a^3 + b^2)
if anyone can help me answer this it would be great thx
Why is 85, 19, 17, 4, and 2 is similar?
Fear or hatred of strangers is a. nativism. b. abolitionism. c. xenophobia. d. stigmata.
Entrepreneurs are visionaries who __________.
which of the following chains of amino acids correspond to the nucleotide sequences AAUGGCUAC
A meiotic division produces _____ daughter cells. 1 2 4