Computer Science, asked by niranjansaha52, 15 days ago

write a menudriven program to :
(i)find the area and perimeter of square
(ii)find the area and perimeter of rectangle​

Answers

Answered by shreeyaparabsjs03830
0

Answer:

I)Since all sides of a square are equal, we only need one side to find its perimeter. The perimeter of the given square is: a + a + a + a = 4 a units. Hence, the formula of the perimeter of a square = 4 × (length of any one side

Explanation:

ii)The perimeter P of a rectangle is given by the formula, P=2l+2w , where l is the length and w is the width of the rectangle. The area A of a rectangle is given by the formula, A=lw , where l is the length and w is the width

please mark me as brainliest

Similar questions