Created
February 13, 2018 07:53
-
-
Save MohanSha/36af90e50b1c48f1dd041c1917d56d17 to your computer and use it in GitHub Desktop.
Calculate the total cost of tile it would take to cover a floor plan of width and height
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
# Find Cost of Tile to Cover W x H Floor | |
# Calculate the total cost of tile it would take to cover a floor plan of width and height, | |
# using a cost entered by the user. | |
height = int(raw_input("Height: ")) | |
width = int(raw_input("Width: ")) | |
cost = int(raw_input("Cost: ")) | |
print "Total cost is " + str(width * height * cost) + "€" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment