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

After world war 2 the communist party led by blank gradually succeeded in gaining majority support due to its practice of redistribution land among blank
Which one of the following statements about carbohydrates is TRUE? Please help fast!!!!
-18 = 6t What does t equal?
-34 divided by 1.2 (round to the nearest hundredth)
Find a ⋅ b. a = <7, 4>, b = <3, 5> a) 41 b) <10, 9> c) -1 d) <21, 20>
Correct answer gets brainliest.
We communicate with verbal language, but sometimes words cannot convey everything. sometimes we may unknowingly resort to a system of body movements as well as
a homeowner plans to hang wallpaper on one wall of a bedroom that is 10 feet long. if a strip of wallpaper is 20 inches wide and strips are hung vertically, how
Why do sugars molecules stay intact when dissolved by water?
A man 6.2 ft tall casts a 8 ft shadow. How tall is a child that casts a 5.6 ft shadow at the same time of the day? (to the nearest tenth)