style:fmt

This commit is contained in:
dichgrem
2025-11-15 13:30:17 +08:00
parent c20e8949a5
commit 41e6b71bd7
33 changed files with 549 additions and 543 deletions

View File

@@ -1,14 +1,15 @@
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);
}
}
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);
}
}