nikolas_serafini

Lista 1 - Exercício 35

May 22nd, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main()
  6. {
  7.     float vol,ray;
  8.  
  9.     printf("Entre com o valor do raio da circunferencia :\n"); scanf("%f",&ray);
  10.     vol = (4/3)*M_PI*pow(ray,3);
  11.     printf("Volume = %f\n",vol);
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment