1011 - Sphere


Problem Link

A Solution in c

#include<stdio.h>
int main()
{
    double R, VOLUME, pi = 3.14159;
    scanf("%lf", &R);
    VOLUME = (4.0/3) * pi*(R * R * R);
    printf("VOLUME = %.3lf\n", VOLUME);
    return 0;

}




No comments

Theme images by Jason Morrow. Powered by Blogger.