Write a program in python to calculate area and perimeter of parallelogram
----------------------------------------------
len=float(input("Enter length : " ))
wid=float(input("Enter width : "))
hi=float(input("Enter height : "))
area_parallelogram=len*hi
peri_parallalogram=2*len+2*wid
print ("The area of the parallelogram is", area_parallelogram)
print(" The perimeter of the parallelogram is", peri_parallalogram)
----------------------------------------------
Output :-
Enter length : 14.7
Enter width : 5
Enter height : 4.6
The area of the parallelogram is 67.61999999999999
The perimeter of the parallelogram is 39.4
0 Comments