Last active
September 8, 2018 03:57
-
-
Save AdryDev92/b6e53ab200aec242f7581b6302e39067 to your computer and use it in GitHub Desktop.
Calculate area of a figure (square, rectangle, triangle)
This file contains 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
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