C++ PROGRAM TO FIND THE AREA OF RECTANGLE
Sample Test Case : Enter length and breadth : 5 2
Sample Test Case : Area of Rectangle : 10.0
CODE
#include <iostream>
using namespace std;
int main()
{
float a,b,area;
cout<<"Enter length and Breadth :";
cin>>a>>b;
area=a*b;
cout<<"Area of Rectangle :"<<area;
return 0;
}

No comments:
Post a Comment