Program to find perimeter of Rectangle in C++.
#include<iostream>
using namespace std;
int main()
{
int l,b,P;
cout<<"enter the value of l and b"<<endl;
cin>>l>>b;
P=2*(l+b);
cout<<"the perimeter of rectangle is "<<P<<endl;
return 0;
}
Tags:
Cplus
#include<iostream>
using namespace std;
int main()
{
int l,b,P;
cout<<"enter the value of l and b"<<endl;
cin>>l>>b;
P=2*(l+b);
cout<<"the perimeter of rectangle is "<<P<<endl;
return 0;
}