RE: RE: Programming Contest 3
You are viewing a single comment's thread from:

RE: Programming Contest 3

ah101(51)
Published in
#contest
Words
5
Reading
1 min
Listen
Play
8y

Here's my solution in python:

def solveProblem(x, y):
    x *= -1
    y *= 4
    return (x - y)  / 3

xVariable = input("Please type in the value of x: ")
yVariable = input("Please type in the value of y: ")
xVar = int(xVariable)
yVar = int(yVariable)
print ("The result is: %f" % (solveProblem(xVar, yVar)))
@ah101: Here's my solution | Ecency