Computer Science, asked by starlight83, 2 months ago

write a program to input the length and breadth of a rectangle and then print its perimeter and area in python​

Answers

Answered by ItzWildCat
40

 \huge \boxed{ \fcolorbox{gray}{pink}{Answer ⤵}}

Python code :

  • ʟ=ɪɴᴛ(ɪɴᴘᴜᴛ("ʟᴇɴɢᴛʜ : "))
  • ᴡ=ɪɴᴛ(ɪɴᴘᴜᴛ("ᴡɪᴅᴛʜ : "))
  • ᴀʀᴇᴀ=ʟ*ᴡ.
  • ᴘᴇʀɪᴍᴇᴛᴇʀ=2*(ʟ+ᴡ)
  • ᴘʀɪɴᴛ("ᴀʀᴇᴀ ᴏғ ʀᴇᴄᴛᴀɴɢʟᴇ : ",ᴀʀᴇᴀ)
  • ᴘʀɪɴᴛ("ᴘᴇʀɪᴍᴇᴛᴇʀ ᴏғ ʀᴇᴄᴛᴀɴɢʟᴇ : ",ᴘᴇʀɪᴍᴇᴛᴇʀ)

 \underline \mathbb \pink{@} \underline \mathtt \pink{ItzWildCat}


sreekarreddy91: Fabulous
shonaansari7876: hi
ItzWildCat: AwesomeCandy!!
shonaansari7876: hi
shonaansari7876: dear
Answered by kodavativarshitha11
2

HERE YOU GO!!!

#Area of Recatangle=length*breadth ---->THIS IS JUST A COMMENT THAT YOU ARE PERFORMING A CERTAIN PROGRAM

l= int(input("Enter Length of the rectangle"))

b=int(input("Enter breadth of the rectangle"))

area=l*b

print("Given values are:\nLength=",l,"\nBreadth=",b)

print("Area of the Recatngle ",area)

HOPE IT HELPS YOU!!! AND MARK MY ANSWER AS BRAINLIEST!!!!

Similar questions