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

what happens when there is a change in pressure at any point in a fluid
what is the ratio of 4.3
Jimmy’s age is one year less than the sum of the ages of his siblings Serena and Tyler. Which equation represents Jimmy’s age? A. look at the picturex represe
a condominium can be defined as a property that
why should the united states and Canada protect their natural vegetation
is 35,689 a composite number?
what is the answer to provides the information for cell growth and function?
the term for multiple meaning words is.A.Homonyms.B.Synonyms.C.Suffixes. D.Homophones
Which parts of this excerpt from Beowulf denotes the importance of kinship and lineage? I have been strand-guard, standing as warden, Lest enemies ever anywise
help needed please.........