@anagenb/

PythonTest1

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
a = int (input("enter room length "))
b = int ( input ("enter room width "))
h = int ( input ("enter carpet width "));

area = a*b-(a-2*h)*(b-2*h)

print ("carpeted area is", area)