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

What is the least common multiple for 20,8,9
How do you solve 4x+5<-6
help please!! which figures ALWAYS have right angles
Steve rings up an item that costs $650. After sales tax, the total is $702. What is the sales tax percentage? Write your answer using a percent sign (%).
What is the logic 32+2 +24=63+ 5=
What makes public works into architecture?
Question 5 of 10 2 Points What was one way plantation owners defended the idea of owning slaves? O A. By passing laws allowing slaves to own guns B. By treating
4. Which element is highly reactive: Sodium, Helium, or Chlorine? 5. Why is Helium considered an unreactive element? 6. What determines an element's' chemical p
(x-4)(x-4)(x-4)-4(x-4)
(Quadratic Formula) (Irrational level 1) Solve the equation for all real solutions in simplest form. 9v^2+11v+5=4v^2