Friday, October 26, 2018

Uri 1011 solution | Sphere

/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/

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

//Happy_coding

No comments:

Post a Comment