Created
January 17, 2020 22:24
-
-
Save yosefsadek/3294e69a9040fb5432f08095f8d93300 to your computer and use it in GitHub Desktop.
بلغة البايثون
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#three variables that store the inputs as a decimal (float) | |
height = float(input("Enter the tank height (cm): ")) | |
width = float(input("Enter the tank width (cm): ")) | |
depth = float(input("Enter the tank depth (cm): ")) | |
#calculation to work out the capacity | |
capacity = (height * width * depth) / 1000 | |
#outputs the capacity of the water tank | |
print("The tank holds" + round(capacity,2) + "litres of water") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment