DFS :: FLOADING

#include<iostream.h>
#include<conio.h>
class shape
{
int l,h,b,t;
public:
area(int);
area(int,int);
area(int,int,int);
};
shape::area(int l)
{
t=l*l;
cout<<“The Length:- “<<t<<endl;
}
shape::area(int l,int b)
{
t=l*b;
cout<<“The Breadth:- “<<t<<endl;
}
shape::area(int l,int b,int h)
{

t=l*b*h;
cout<<“The Height:- “<<t<<endl;
}
void main()
{
int l,b,h;
clrscr();
cout<<“Enter The Length:- “;
cin>>l;
cout<<“Enter The Breadth:-“;
cin>>b;
cout<<“Enter The Height:- “;
cin>>h;
shape ob;
ob.area(l);
ob.area(l,b);
ob.area(l,b,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.