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

Explain how we get emotions in your own words, Not from the Internet.
Please answer correctly !!! Will mark brainliest !!!!!!
x^2+11x+18= please help me
What one of the shape has a flat surface
If the volume of a gas, at constant temperature, changes from 200 ml to 500 ml, the pressure on the gas must have changed from 400 torr to ____________.
square 20cmx20xmWhat is the volume of your box?What different volumes can you make byvarying the size of the squares you cut out?What is the maximum possible vo
what is 8 - 3x > -25 because i have been wondering all day
solve the system of equations y=4x+1, y=x2+2x-2
Who warns Pandora not to open the great box? A. Perdix B. Eros C. King Minos D. Epimetheus
If you wanted to safely climb a 50-foot wall, what’s the shortest ladder you’d be willing to use? Explain.