write a program to input the length and breadth of a rectangle and then print its perimeter and area in python
Answers
Answered by
40
Python code :
- ʟ=ɪɴᴛ(ɪɴᴘᴜᴛ("ʟᴇɴɢᴛʜ : "))
- ᴡ=ɪɴᴛ(ɪɴᴘᴜᴛ("ᴡɪᴅᴛʜ : "))
- ᴀʀᴇᴀ=ʟ*ᴡ.
- ᴘᴇʀɪᴍᴇᴛᴇʀ=2*(ʟ+ᴡ)
- ᴘʀɪɴᴛ("ᴀʀᴇᴀ ᴏғ ʀᴇᴄᴛᴀɴɢʟᴇ : ",ᴀʀᴇᴀ)
- ᴘʀɪɴᴛ("ᴘᴇʀɪᴍᴇᴛᴇʀ ᴏғ ʀᴇᴄᴛᴀɴɢʟᴇ : ",ᴘᴇʀɪᴍᴇᴛᴇʀ)
sreekarreddy91:
Fabulous
Answered by
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