7 lines
No EOL
187 B
Python
7 lines
No EOL
187 B
Python
# Read the numbers b and h like this:
|
|
base = float(input('Enter Base: '))
|
|
height = float(input('Enter Height: '))
|
|
|
|
# Print the result with print()
|
|
area = 0.5 * (base * height)
|
|
print(area) |