Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main (void){
- int raio;
- cout <<"Informe o raio de uma esfera: ";
- cin>>raio;
- volume(raio);
- cout<<"\n";
- system("pause");
- }
- void volume(int raio){
- double v;
- v = 4 / (3 * 3.14) * raio * 3;
- cout<< "Volume: "<<v;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement