C++ Program to Find Area of Rectangle
Write C++ Program to Find Area of Rectangle
// CPP Program to Find Area of Rectangle
#include <iostream>
using namespace std;
int main()
{
float length = 23.21, breadth = 12.20 , area;
area = length * breadth; //Formula to find the area of Rectangle
cout << "Area of Rectangle having length " << length << " and breadth " << breadth << " is :--> " << area;
return 0;
}
Output:
Area of Rectangle having length 23.21 and breadth 12.20 is :--> 283.16