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

You hear someone mention the molecule "amp." based on what you learned about the structure of atp and the way in which energy is released, what do you think amp
If we take away a lot of energy from a liquid what phase will it change to ?
What does f(3)= ? Please help answer me
What do vascular plants use to grow new plants?​
identify an equation in point slope form for the line perpendicular to y=-2/3x+8 that passes through 4,-5
Simplify the following expression. 2^-1/2 x 2^7/2 A. 4 B. 16 C. 64 D. 8
The opportunity cost of increasing production of good A from 1 unit to 2 units is the loss of
PLZ answer !! Find the selling price of a $270 bicycle with a 24% markup.
Which of the following were important aspects of Manifest Destiny? Check all of the boxes that apply. -Expanding the nation to the west -Respecting the rights
Ages of all elephants at the woodward zoo statestics based on the collected data,what is the mean number of errors brad made per year