int rad1;
float volsp;
cout<<" Input the radius of a sphere : ";
cin>>rad1;
volsp=(4*3.14*rad1*rad1*rad1)/3; //3.14 is the pie
cout<<" The volume of a sphere is : "<< volsp << endl;
cout << endl;
Code Example |
---|
Cpp :: elements of set c++ |
Cpp :: singleton c++ |
Cpp :: c++ length of char array |
Cpp :: how print fload wiht 2 decimal in c++ |
Cpp :: max of a vector c++ |
Cpp :: c++ terminal color |
Cpp :: how to clear vector c++ |
Cpp :: opencv c++ image write |
Cpp :: delete a node from binery search tree c++ |
Cpp :: memset in c++ |
Cpp :: check uppercase c++ |
Cpp :: initialize an array in c++ |
Cpp :: ray sphere intersection equation |
Cpp :: restting a queue stl |
Cpp :: the code execution cannot proceed because glew32.dll was not found |
Cpp :: c++ get character from string |
Cpp :: size of stack in c++ |
Cpp :: reverse function in cpp string |
Cpp :: how to initialize array with new in c++ |
Cpp :: c++ cstring to string |
Cpp :: throw exception c++ |
Cpp :: int to float c++ |
Cpp :: c++ vector resize |
Cpp :: print vector c++ |
Cpp :: cpp return array |
Cpp :: binary search c++ |
Cpp :: cpp while |
Cpp :: how to slice vector in c++ |
Cpp :: c++ initialize static variable |
Cpp :: cpp ifdef |