Write an algorithm to find the perimeter of a rectangle by giving the values of length (L) and breadth (B).
{Don't Spam it's important}
Answers
Answered by
3
Answer:
Refer to the attachment..
Do accordingly.
Attachments:
Answered by
3
Answer:
Inputs: len for Length of the Rectangle and bre for Breadth of the Rectangle.
Output: peri for Perimeter of the Rectangle, or suitable unsuccessful message.
Data Structures Used: No Data Structures are used for this Algorithm.
Steps:
Begin
If(len<=0)
Print "Length cannot be Zero or Negative"
Else If(bre<=0)
Print "Breadth cannot be Zero or Negative"
Else
peri = 2 * (len + bre)
End If
End
This is a simple algorithm for finding the Perimeter of the Rectangle.
Explanation:
Mark me as brainliest ...your choice (︶︿︶)
Attachments:
Similar questions