samarabdalla137468g samarabdalla137468g
  • 14-03-2021
  • Computers and Technology
contestada

Perform the operation (2x+3y)/2y (accept the values for x and y through input commands)

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 19-03-2021

Answer:

In Python:

x = int(input("x: "))

y = int(input("y: "))

Result = (2 * x + 3 * y)/(2 * y)

Print(Result)

Explanation:

Get input for x

x = int(input("x: "))

Get input for y

y = int(input("y: "))

Calculate the expression

Result = (2 * x + 3 * y)/(2 * y)

Print the result of the expression

Print(Result)

Answer Link

Otras preguntas

Help me please. What Is Stonehenge?
Carla's plant was 10 2/3 inches tall. Yolanda's was 8 3/4 inches tall. How much taller was Carla's plant than Yolanda's?I came up with 2 11/12.   Am I right??
Rheumatic fever is a bacterial disease that can result in degeneration of heart valves that would cause?
Which is a solution to the equation y=5x-6
90 < x < 180 is my range and my answer is 0.6 for it to be correct is it positive or negative?
Noah rows across a river that is 48m wide. The current carries him 15m downstream. How far does Noah actually travel?
Write 3/5, 1 2/3, 15/7, 1/2, 2 5/8, and 9/4 in order from least to greatest!!!
does anybody know how to write 45/70 in simplest form????
what is the fraction ten twelfths in it's simplest form ?
What does it mean when Brutus says: "Into what dangers would you lead me, Cassius... that you would have me seek into myself...for that which is not in me?