Python Tutorial | Learn Python Programming

Pubblicato il: 22 maggio 2024
sul canale di: RABIUL ISLAM Official
35
5

#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


In questa pagina del sito puoi guardare il video online Python Tutorial | Learn Python Programming della durata di ore minuti seconda in buona qualità , che l'utente ha caricato RABIUL ISLAM Official 22 maggio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 35 volte e gli è piaciuto 5 spettatori. Buona visione!