Length and breadth of a rectangle are 5 and 7 respectively. Write a program to calculate the area and perimeter of the rectangle?

# Length and breadth of a rectangle are 5 and 7 respectively. Write a program to calculate the area and perimeter …

Share

#include<bits/stdc++.h>

using namespace std;

int area_Rectangle(int length, int breadth)

{

int area = length * breadth;

return area;

}

int perimeter_Rectangle(int length, int breadth)

{

int perimeter = 2*(length + breadth);

return perimeter;

}

int main()

{

int length = 5;

int breadth = 7;

cout << “Area of the Rectangle = ” << area_Rectangle(length, breadth) << endl;

cout << “Perimeter of the Rectangle = ” << perimeter_Rectangle(length, breadth);

return 0;

}

#To get Output download Attachment.