Write a C++ program to input length and breadth, calculate and print area and perimeter of a rectangle
Answers
Answered by
3
Answer:
#include<iostream>
#include<conio.h>
#include<stdlib.h>
using namespace std;
int main()
{
int length, breadth, area,peri; cout << "\nEnter the Length of Rectangle : ";
cin>>length;
cout << "\nEnter the Breadth of
Rectangle : ";
cin>>breadth;
area = length * breadth;
cout << "\nArea of Rectangle : "<<
area;
peri=2*(length+breadth);
cout << "\nPerimeter of Rectangle: "
<< peri;]
Similar questions