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
Chemistry,
1 month ago
Math,
1 month ago
English,
2 months ago
Math,
2 months ago
Social Sciences,
9 months ago