Problem Description

According to the radius value entered , Calculate the volume of the ball .
Input

There are multiple sets of input data , Each group has one line , Each row contains a real number , Represents the radius of the ball .
Output

Output the corresponding volume of the ball , For each group of input data , Output one line , The calculation results are kept to three decimal places .
Sample Input

1
1.5
Sample Output

4.189
14.137
Hint

define PI 3.1415927

Source

HDOJ
import java.text.DecimalFormat; import java.util.Scanner; public class Main {
public static void main(String[] args) { Scanner str = new Scanner(System.in);
DecimalFormat df =new DecimalFormat("0.000"); double x, y; while(str.hasNext())
{ x = str.nextDouble(); y = (4.0 * (3.1415927) * x * x * x) / 3; System.out
.println(df.format(y)); } str.close(); } }

Technology
©2020 ioDraw All rights reserved
Laravel HomesteadVue Novice : The front end of file preview function python-- Freshman final test questions ( With answers )C# Time every day 00 spot 00 branch 00 Second auto restart software This article takes you to explain the working principle of matrix keyboard springboot+vue+shiro Function authority Mining virus processing record Vue Export page as PDF file @ControllerAdvice Intercept abnormal return data 10000 R & D personnel ! Huawei's world's first car size lidar 150 M detection range