Guest User

Untitled

a guest
Jun 18th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define FRACTION 4.0f/3.0f
  4. #define PI 3.14
  5.  
  6. int main(void)
  7. {
  8.     float radius, volum, ferdig;
  9.     printf("Skriv inn radius: ");
  10.     scanf("%f", &radius);
  11.     volum=FRACTION * PI * radius * radius * radius;
  12.     printf("Volum: %f\n" volum);
  13.  
  14.     return 0;
  15. }
Add Comment
Please, Sign In to add comment