Answers for "C++ Volume of a Cube"

C++
0

C++ Volume of a Cube

int side, vol;

        cout<<" Input the side of a cube : ";
    	cin>>side;

    	vol = side * side * side;

        cout<<" The volume of a sphere is : "<< vol << endl;
        cout << endl;
Posted by: Guest on March-09-2022

Browse Popular Code Answers by Language