Wednesday, August 23, 2017

1011 Sphere URI Problem Only Solution In C#


using System;

namespace URIApplication

{

class URI

 {

    static void Main(string[] args) {

       double R=Convert.ToDouble(Console.ReadLine());  
       double pi=3.14159;
       double f=4/3.0;
       double MEDIA=(f)*pi*R*R*R;
       Console.WriteLine("VOLUME = "+MEDIA.ToString("0.000"));

    }

}

}

No comments:

Post a Comment