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

distance of 45 km with the modernist speed of 20 km per hour is
What did African Americans gain during WWII?
Mike sold half of his comic books and then bought 9 more. He now has 12. How many did he begin with?
you go down 8 floors in an elavator your friend goes up 5 floors in a elevator write each amount as a integer
factor completely: 6m^2 - mn - 12n^2
(8.41 x 10 to the fourth) + (9.71 x 10 to the fourth)
please help find out what is b/3+17=48
how were the native Americans different from the first americans?
What is 5.242 rounded to nearest tenth?
What did African Americans gain during WWII?