Write a c++ program to find the area and perimeter of a rectangle
Answers
Answered by
1
Answer:
#include <iostream>
using namespace std;
int main() {
int l,b,area,perimeter;
cout << "enter the length and breadth of rectangle:";
cin>>l>>b;
area =l*b;
cout << "the area is:"<<area<<endl;
perimeter =2*(l+b);
cout<< "the perimeter is:"<<perimeter<<endl;
return 0;
}
Explanation:
Similar questions