-
-
Notifications
You must be signed in to change notification settings - Fork 47.7k
Python #12911
gegan0215-l
started this conversation in
General
Python
#12911
-
Generate a python code on an area of triangle
Beta Was this translation helpful? Give feedback.
All reactions
-
😄 1
Replies: 2 comments 1 reply
-
Nice
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
-
base = float(input("Enter the base of the triangle: "))
height = float(input("Enter the height of the triangle: "))
area = 0.5 * base * height
print("The area of the triangle is:", area)
Beta Was this translation helpful? Give feedback.
All reactions
1 reply
-
1
Beta Was this translation helpful? Give feedback.
All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment