FUNCTION OVERLOADING  
AIM:
To Write a program to implement Function Overloading.




ALGORITHM:
STEP 1: Start the program.
STEP 2: Declare the variables and function.
STEP 3: Call the first function and return the value sequentially for three function and return the value.
STEP 4: Overload the function and display.
STEP 5: Stop the program Execution.

PROGRAM:

#include<iostream.h>
#include<conio.h>
int volume(int);
double volume(double,int);
long volume(long,int,int);
int main()
{clrscr();
cout<<volume(10)<<"\n";
cout<<volume(2.5,8)<<"\n";
cout<<volume(100,75,15)<<"\n";
getch();
return 0;
}
int volume(int s)
{
return(s*s*s);
}
double volume(double r,int h)
{
return(3.14519*r*r*h);
}
long volume(long l,int b,int h){
return(l*b*h);
}
OUTPUT:
1000
157.2595
112500