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

Why is sodium sulphate hemihydrate called as "Plaster of Paris"?
Why is sodium sulphate hemihydrate called as "Plaster of Paris"?
The function of the eardrum in the middle ear is to
what is a high structure part of a church which has 5 letters
How do you?...Multiply out and simplify 10(2x-1)-20x?
What is the least common denominator for 5/6 and 3/8. 3/4 and 6/7
how were north american colonies all similar in the 1700s?
how were north american colonies all similar in the 1700s?
how do you write 4540 million in standard form?
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?