URI Problem (Sphere) 1011 Solution in Java

Problem Solving, URI

URI Problem (Sphere) 1011:
Sphere is a basic problem on URI online judge for novice problem solver.
You can find details on this Link.

import java.util.Scanner;

/**
 * @Author : Muhammad Harun-Or-Roshid
 * @Date   : Oct 6, 2016
 * @Time   : 8:31:10 PM
 */
public class Uri1011 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double R = sc.nextDouble();
        double VOLUME  = (4.0/3.0)*3.14159*R*R*R;
        System.out.printf("VOLUME = %.3f\n",VOLUME);
    }
}

0 Comments

You may find interest following article