#include<iostream>
using namespace std;
int volume(int l) 
{
    return (l*l*l);
}
double volume(double r, double h)
{
    return (3.14*r*r*h);
}
long volume(int l,int b,int h )
{
    return(l*b*h);
}
int main()
{
    cout<<"volume of cube:"<<volume(9)<<endl;
        cout<<"volume of cylinder:"<<volume(10.2,5.5)<<endl;
    
   cout<<"volume of box:"<<volume(9,4,6)<<endl;
}


    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: