mirror of
https://github.com/Dichgrem/Java.git
synced 2025-12-16 20:42:00 -05:00
start:java8
This commit is contained in:
14
com/study/demo/test2_2.java
Normal file
14
com/study/demo/test2_2.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package com.study.demo;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class test5 {
|
||||
public static void main(String[] args) {
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
int a = scanner.nextInt();
|
||||
int b = scanner.nextInt();
|
||||
int c = scanner.nextInt();
|
||||
double pi = 3.1415926535;
|
||||
double area = a * b * c + a * c + (pi * c * c) / 4;
|
||||
System.out.printf("%.3f\n", area / 10000);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user