159k views
0 votes
Perform the operation (2x+3y)/2y (accept the values for x and y through input commands)

User GammaGames
by
4.2k points

1 Answer

5 votes

Answer:

In Python:

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

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

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

Print(Result)

Step-by-step 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)

User Flson
by
4.6k points