Skip to content

Instantly share code, notes, and snippets.

@MohanSha
Created February 13, 2018 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MohanSha/36af90e50b1c48f1dd041c1917d56d17 to your computer and use it in GitHub Desktop.
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
# 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