0
Problem Statement

A bathroom has 10 6 inch tiles along its width and 20 6 inch tiles along its length. What is the square footage of the bathroom?

Problem Summary
  • Width tiles: 10 tiles of 6 inches each
  • Length tiles: 20 tiles of 6 inches each

What we need to find

Calculate the square footage of the bathroom.

Python Solution
1 # Calculate the total width of the bathroom in inches
2 width_inches = 10 * 6
3 # Convert the width from inches to feet
4 width_feet = width_inches / 12
5 # Calculate the total length of the bathroom in inches
6 length_inches = 20 * 6
7 # Convert the length from inches to feet
8 length_feet = length_inches / 12
9 # Calculate the square footage of the bathroom
10 bathroom_area = length_feet * width_feet
Variables
No variables initialized yet Run the code to see variables