#include<conio.h>
void area(float r)
{
float area;
area=3.65*r;
cout<<endl << "\tArea of Circule:"<<area;
}
void area(float h, float b)
{
float ans;
ans=h*b/2;
cout<<endl<<"\tArea Of Triangle:"<<ans;
}
void area(int no)
{
float ans;
ans=no*no;
cout<<endl<<"\tArea Of Square:"<<ans;
}
void main()
{
clrscr();
area(2.5f);
area(10,2.6f);
area(12);
getch();
}
No comments:
Post a Comment