You are viewing a single comment's thread from:

RE: Programming Contest 3

in #contest7 years ago

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)))

Coin Marketplace

STEEM 0.16
TRX 0.16
JST 0.028
BTC 70016.53
ETH 2453.77
USDT 1.00
SBD 2.39