kearnyadvertising kearnyadvertising
  • 14-12-2021
  • Computers and Technology
contestada

Write a program that:
a) Asks the user if they want to multiply two numbers that they entered, if their answer equals yes then multiply the numbers else write a message saying "peace out".

Respuesta :

6385726215
6385726215 6385726215
  • 24-12-2021

Answer:

num1 = int(input("Enter number 1: "))

num2 = int(input("Enter number 2: "))

choice = input("Do you want to multiply them?: ")

if choice.capitalize() == "Yes":

   print(num1 * num2)

else:

   print("Peace out.")

Explanation:

Gg ez.

(I wrote the it in python because I don't know what language you want it in. Next time, say what language you want.)

Answer Link

Otras preguntas

ten times a number is at most 420
Why do living things store energy in lipids instead of carbohydrates??
what is 5 1/2% as a fraction in simplest form????
The main purpose of a colony is to supply the mother country with raw materials that can be turned into a manufactured good. a. True b. False
Please Help!!! The average of your 3 quiz grades is 17 points. Two of your quiz grades are 14 points and 19 points. Write and solve an equation to find the thi
the US government gave land to the railroads to help them expand what impact did these land grants have our industries in the West
170 is 1/10 of 17 true or false
Which type of narrator would an author use if he or she wanted to limit the perspective of the story to only one character? a. Rhetorical b. Third person c.
Which word in the sentence does the underlined phrase modify? In the cool shade **during the rain**, we had a pleasant afternoon. A. had B. cool C. a
What is 709032-249136?