start:java8

This commit is contained in:
dichgrem
2025-10-30 14:30:50 +08:00
parent 3d166ec578
commit af1ea3e24e
21 changed files with 303 additions and 0 deletions

View 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);
}
}