migrate to git.charlotte.sh
This commit is contained in:
commit
fbd588721e
412 changed files with 13750 additions and 0 deletions
7
python-csi160/week02/Week-2Practice-Problems/part4.py
Normal file
7
python-csi160/week02/Week-2Practice-Problems/part4.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
# 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)
|
Loading…
Add table
Add a link
Reference in a new issue