Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
 
PREVIOUS NEXT
Tagged: #Volume #Cube
ADD COMMENT
Topic
Name
2+4 =