Computer Science, asked by janhvi4969, 8 months ago

write progam to calculate area and perimeter of a rectangle​

Answers

Answered by bkbmjksgmailcom
1

Explanation:

To find the perimeter of rectangle we add the length and width of rectangle and then multiply it with 2(as per formula given above) and store perimeter in a floating point variable. At last, it prints the perimeter of rectangle on screen using printf function. Opposite sides of a rectangle are equal and parallel

Attachments:
Answered by rupatejaswi
1

Explanation:

The formula of perimeter of a rectangle= 2(l+b)

Similar questions