Python Tutorial | Learn Python Programming



#WAP AREA OF RECTANGLE
CODE:-
l=int(input(“length in CM:-“))
b=int(input(“breadth in CM:-“))
a=l*b
print(“Area of rectangle is:- “,a,”CM^2”)
OUTPUT:-
length in CM:-50
breadth in CM:-20
Area of rectangle is:- 1000 CM^2

#WAP AREA OF CIRCLE
CODE:-
r=int(input(“enter radius of a circle”))
a=3.14*(r*r)
print(“Area of circle is:- “,a)
OUTPUT:-
enter radius of a circle 50
Area of circle is:- 7850.0

#WAP AREA OF CUBOID
CODE:-
l=int(input(“enter length:-“))
b=int(input(“enter breadth:-“))
h=int(input(“enter height:-“))
a=2*(l*b+b*h+h*l)
print(“the area is:- “,a)
OUTPUT:-
enter length:- 10
enter breadth:- 20
enter height:-10
the area is:- 1000

source