Created
February 25, 2022 09:46
-
-
Save shivam-gupta007/657c484879e1b46135bd0ed8eb98d6c0 to your computer and use it in GitHub Desktop.
Python-assignment
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
b = float(input("Enter the base of Triangle: ")) | |
h = float(input("Enter the height of Triangle: ")) | |
area = (b*h)/2 | |
print("Area of Triangle: ",(area)) | |
# Output - | |
# Enter the base of Triangle: 11.5 | |
# Enter the height of Triangle: 5 | |
# Area of Triangle: 28.75 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment