Created
January 12, 2017 15:25
-
-
Save MechMK1/d4870cb48fe6559dc6a603c779b4ca4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import math | |
if __name__ == '__main__': | |
a = int(input("a: ")); | |
b = int(input("b: ")); | |
res = pow(a,2) + 2*a + pow(b,2); | |
print("a² + 2a + b²: {}".format(res)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment