Advertisement
FAMDS

QUESTÃO9

Sep 19th, 2019 (edited)
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. int main (void){
  2.  int raio;
  3.  cout <<"Informe o raio de uma esfera: ";
  4.  cin>>raio;
  5.  volume(raio);
  6.  cout<<"\n";
  7.  system("pause");
  8. }
  9. void volume(int raio){
  10.  double v;
  11.  v = 4 / (3 * 3.14) * raio * 3;
  12.  
  13.  cout<< "Volume: "<<v;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement