海伦公式

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble(), b = sc.nextDouble(), c = sc.nextDouble();
        double zh = a + b + c;
        double p = zh/2;
        System.out.printf("circumference=%.2f area=%.2f", zh, Math.sqrt(p*(p - a)*(p - b)*(p - c)));
    }
}