@lakshayarora7/

CuddlyPastWoodchuck

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
## Calculate the area of a room
 
# Get inputs from user
unit = input("Enter the unit of dimensions (e.g. feet, yards): ")
length = float(input("Enter the length of the room: "))
breadth = float(input("Enter the breadth of the room: "))
 
# Calculate the area
area = length * breadth
 
# Outputting area onto the screen
print("The area of the room is", area, "square", unit)