#include <iostream>
using namespace std;
double volume(int length)
{
    return length*length*length;
}
double volume(int radius,int height)
{
    return 4/3*3.14*radius*radius*height;
}
double volume (int lenght,int height,int breadth)
{
    return lenght*height*breadth;
}
int main()
{
    cout<<"volume of cube is "<<volume(5)<<endl;
    cout<<"volume of sphere is"<<volume(3,8)<<endl;
    cout<<"volume of cuboid is"<<volume(3,5,6)<<endl;
}

Embed on website

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