Computer Science, asked by abhishek328, 1 year ago

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 swast7351
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 ;
}
Similar questions