Computer Science, asked by virajop37, 19 days ago

Write a C++ program to input length and breadth, calculate and print area and perimeter of a rectangle​

Answers

Answered by nitusinghmanoj
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