Advertisement
Rehan_Rahman26

URI 1011

Apr 10th, 2021
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5.    float a;
  6.    scanf("%f",&a);
  7.    
  8.    printf("VOLUME = %.3f\n",(4.0/3) * 3.14159 * a*a*);
  9.    return 0;
  10. }
  11.  
  12. #include <stdio.h>
  13.  
  14. int main() {
  15.  
  16.    float a;
  17.    scanf("%f",&a);
  18.    
  19.    printf("VOLUME = %.3f\n",(4 * 3.14159 * pow(a, 3)) / 3);
  20.    return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement