write a program in c++ to find perimeter of rectangle using function with arguments
Answers
Answered by
2
Answer:
#include<iostream>
using namespace std;
int main()
{
float len, bre, area;
cout<<"Enter Length of Rectangle: ";
cin>>len;
cout<<"Enter Breadth of Rectangle: ";
cin>>bre;
area = len*bre;
cout<<"\nArea = "<<area;
cout<<endl;
return 0;
}
Hope it helps you.
Similar questions
Chemistry,
1 month ago
Math,
1 month ago
Computer Science,
2 months ago
Science,
2 months ago
Math,
9 months ago