Shreyank Bansod
Shreyank Bansod answered

#include<iostream>

usingnamespacestd;

intarea(int);

intarea(int,int);

floatarea(float);

floatarea(float,float);

intmain()

{

ints,l,b;

floatr,bs,ht;

cout<<"Enter side of a square:";

cin>>s;

cout<<"Enter length and breadth of rectangle:";

cin>>l>>b;

cout<<"Enter radius of circle:";

cin>>r;

cout<<"Enter base and height of triangle:";

cin>>bs>>ht;

cout<<"Area of square is"<<area(s);

cout<<"nArea of rectangle is "<<area(l,b);

cout<<"nArea of circle is "<<area(r);

cout<<"nArea of triangle is "<<area(bs,ht);

}

intarea(ints)

{

return(s*s);

}

intarea(intl,intb)

{

return(l*b);

}

floatarea(floatr)

{

return(3.14*r*r);

}

floatarea(floatbs,floatht)

{

  return((bs*ht)/2);

}