728x90
public class chp3_10_1 {
public static void main(String[] args) throws java.io.IOException {
int a, b, c;
a = System.in.read() - '0';
b = System.in.read() - '0';
c = System.in.read() - '0';
double l = (a+b+c)/2.0;
double s = Math.sqrt(l*(l-a)*(l-b)*(l-c));
System.out.println(s);
}
}
반응형
'전.java' 카테고리의 다른 글
원금과 이율, 기간을 입력으로 받아 복리법에 의해 원리합계를 구하기 (0) | 2021.01.29 |
---|---|
Math (0) | 2021.01.29 |
<<, >> 연산 (0) | 2021.01.29 |
비트 수 구하기 (0) | 2021.01.29 |
double 최대, 최소 연산 (0) | 2021.01.29 |