Skip to content

Instantly share code, notes, and snippets.

@AdryDev92
Last active September 8, 2018 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdryDev92/b6e53ab200aec242f7581b6302e39067 to your computer and use it in GitHub Desktop.
Save AdryDev92/b6e53ab200aec242f7581b6302e39067 to your computer and use it in GitHub Desktop.
Calculate area of a figure (square, rectangle, triangle)
a = float(input("input width: "))
b = float(input("input height: "))
def calculateArea(a,b):
area = a*b
return area
result = calculateArea(a,b)
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment