Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python #12911

gegan0215-l started this conversation in General
Python #12911
Aug 21, 2025 · 2 comments · 1 reply
Discussion options

Generate a python code on an area of triangle

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

Nice

You must be logged in to vote
0 replies
Comment options

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)

You must be logged in to vote
1 reply
Comment options

1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /