write a function for evaluating the area of a rectangle having sides a and b both sides and the area should be taken as float values.
Answers
Answered by
1
#include<iostream.h>
void main()
{
float a, b, ar;
cout<<"Enter the length of rectangle";
cin>>a;
cout<<"Enter the breadth of rectangle";
cin>>b;
ar=axb;
cout<<"The area of the rectangle is "<< ar ;
}
void main()
{
float a, b, ar;
cout<<"Enter the length of rectangle";
cin>>a;
cout<<"Enter the breadth of rectangle";
cin>>b;
ar=axb;
cout<<"The area of the rectangle is "<< ar ;
}
Similar questions