Python 2
Python 2
Input:
# To obtain its length and breadth of a
rectangle and calculate area
length = float(input("enter length of
rectangle:"))
breadth = float(input("enter breadth of
rectangle:"))
area = length*breadth
print (area ,'sq . cm')
Output:
enter length of rectangle:20
enter breadth of rectangle:10
200.0 sq . cm