Skip to content

Instantly share code, notes, and snippets.

@shivam-gupta007
Created February 25, 2022 09:46
Show Gist options
  • Save shivam-gupta007/657c484879e1b46135bd0ed8eb98d6c0 to your computer and use it in GitHub Desktop.
Save shivam-gupta007/657c484879e1b46135bd0ed8eb98d6c0 to your computer and use it in GitHub Desktop.
Python-assignment
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