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

Appearance settings
Discussion options

Generate a python code on an area of triangle

You must be logged in to vote

Replies: 3 comments · 2 replies

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
@nguyentiendat359
Comment options

1

Comment options

Need mentor

You must be logged in to vote
1 reply
@gegan0215-l
Comment options

Yh I do need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.