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
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
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
Computer Science,
3 months ago
English,
3 months ago
Geography,
3 months ago
Math,
7 months ago
Computer Science,
7 months ago
English,
11 months ago
Physics,
11 months ago
Political Science,
11 months ago