Skip to content

Instantly share code, notes, and snippets.

@missingdays
Created October 27, 2015 12:29
Show Gist options
  • Save missingdays/57cfbbedea9bb8d089a5 to your computer and use it in GitHub Desktop.
Save missingdays/57cfbbedea9bb8d089a5 to your computer and use it in GitHub Desktop.
def formula_1(x):
# Вычисление первой формулы
n = x
return n
def formula_2(a, b, y):
# Вычисление второй формулы
n = a + b + y
return n
x = int(input("Enter x:"))
y = int(input("Enter y:"))
a = int(input("Enter a:"))
b = int(input("Enter b:"))
n = formula_1(x)
print(n)
n = formula_2(y, a, b)
print(n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment