DFS :: FOVER

#include<iostream.h>
#include<conio.h>
class area
{
int t;
public:
fun(int l);
fun(int l,int w,int b);
fun(int l,int b );
};
area::fun(int l)
{
t=l*l;
cout<<t<<endl;
}
area::fun(int l,int w,int b)
{
t=l*w*b;
cout<<t<<endl;
}
area::fun(int l,int b)
{
t=l*b;
cout<<t<<endl;
}
void main()
{
clrscr();
int l,b,w,h;
area ob;
cout<<“Enter the value for square :”;
cin>>l;
cout<<“Enter the value for triangle:”;
cin>>l;
cout<<“Enter the value for triangle:”;
cin>>b;
cout<<“Enter the value for triangle :”;
cin>>w;
cout<<“Enter the value for rectangle:”;
cin>>l;
cout<<“Enter the value for rectangle:”;
cin>>h;
ob.fun(l);
ob.fun(l,b,w);
ob.fun(l,h);
getch();
}

Share

About the Author

Akash Padhiyar

Visit Website

There are no comments yet, add one below.

Leave a Comment

Your email address will not be published. Required fields are marked *

*

Time limit is exhausted. Please reload CAPTCHA.