Horje
C++ Volume of a Cylinder Code Example
C++ Volume of a Cylinder
    	int rad, height;
    	float vol;

        cout <<" Input the radius of a cylinder: ";
    	cin >> rad;

        cout << "Input the height of a cylinder: ";
        cin >> height;

    	vol = (3.14 * rad * rad * height) ; //3.14 is the pie

        cout << " The volume of a sphere is : "<< vol << endl;
        cout << endl;




Cpp

Related
Increase IQ codechef solution in c++ Code Example Increase IQ codechef solution in c++ Code Example
c++ splitstring example Code Example c++ splitstring example Code Example
c++ string_t to string Code Example c++ string_t to string Code Example
how-to-read-until-eof-from-cin-in-c++ Code Example how-to-read-until-eof-from-cin-in-c++ Code Example
iterate const vector Code Example iterate const vector Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8