Computer Science, asked by kartikeyv125, 7 months ago

Write program to input length and breath of a rectangle. Calculate and
print the area and perimeter of a circle. (Area-length X breadth,
Perimeter=2(lengthlx breadth)​

Answers

Answered by reddyyashodhara
1

Answer:

#include<iostream>

using namespace std;

int main()

{

 int l,b,x,perimeter, area;

cout<<"enter length"<<"\n";

 cin>>l;

cout<<"enter breadth"<<"\n";

cin>>b;

x = l+b;

perimeter = 2*x;

area = l*b;

cout<<"Perimeter is "<<perimeter<<"\n";

cout<<"Area is "<<area<<"\n";

}

Explanation:

Answered by sudhakumari12323
1

Answer:

L=int(input("Enter the length of rectangle"))

B=int(input("Enter the breath of rectangle"))

Perimeter = 2(L+B)

Area=L×B

print=("Area of rectangle")

print=("Perimeter of rectangle")

Similar questions