Computer Science, asked by bjyothi3579, 7 months ago

algoritham for find area and perimeter of rectangle​

Answers

Answered by yuvrajmeena802
2

Answer:

All the sides of rectangle are not equal only the opposite sides of a rectangle are equal. ... Here A represents the breadth and B represents length of the rectangle. To find the Area of a rectangle the formula is: Length x Breadth. And Perimeter of a rectangle is − 2 x (Length+Breadth)

Explanation:

please follow me

Answered by Karthi2112
0

Answer:

Algorithm

START

In Function int area(int a, int b)

Step 1 -> Declare an integer ‘area’ and store a * b in it

Step 2 -> Return area.

In Function int perimeter(int a, int b)

Step 1-> Declare an integer ‘perimeter’ and store 2*(a + b) in it

Step 2-> Return perimeter

In int main()

Step 1 -> Declare two integers ‘length’, ‘breadth’

Step 2 -> Print area(length,breadth)

Step 3 -> Print perimeter(length, breadth);

STOP

Explanation:

I Hope U R Crystal Clear With Ur Question... So, Kindly Mark Me As BRAINLIEST If U Like To And Do Rate Me If U Like To...

THANK YOU!!!!!!

Similar questions