0% found this document useful (0 votes)
29 views1 page

Python 2

Uploaded by

balrajsiwach
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

Python 2

Uploaded by

balrajsiwach
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PYTHON PROGRAM-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

You might also like