-
Notifications
You must be signed in to change notification settings - Fork 0
/
rectangle area.py
30 lines (28 loc) · 1022 Bytes
/
rectangle area.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
def areaRactangle(length , breadth):
'''
objective : to compute the area of the Ractangle
input parameters :
length : Length of Ractangle
breadth : breadth of the Ractangle
approach : multiply length and breadth
return value : area of Ractangle
'''
area=length * breadth
return area
def main():
'''
objective : to compute the area of the Ractangle
user inputs :
length : Length of Ractangle
breadth : breadth of the Ractangle
approach : to use function areaRactangle()
return value : area of Ractangle
'''
length = int(input("Enter Length of Ractangle: "))
breadth =int(input("Enter Breadth of Ractangle: "))
print('Length of Ractangle : ' ,length)
print('Breadth of Ractangle : ' ,breadth)
print('Area of Ractangle : ' , areaRactangle(length ,breadth))
if __name__ == '__main__':
main()
print("End of the Program")