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

35 tens = how many hundreds
please help!!!!!!!!!!!!!!!!!!!!!
Measure the amount of space an object takes up is what
The number of cents in q quarters is 150
What is the differences between River system, Tributary?
What do decomposers (decomposition) do in the nitrogen cycle? A. change nitrogen to gas B.put nitrogen into soil C.put nitrogen into air D. get rid of bacteria
what is the thermal energy that flows from one substance to another when the substances differ in temperature.
Evaluate -4/5 x 1 2/7
The product of 3, and a number increased by 6​, is minus−24
Escoge la mejor respuesta. Puedes nadar en las cataratas. True or False