package pack;
import java.util.Scanner;
public class two {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
double a, b, c, p, d;
System.out.println("Enter number A");
a = sc.nextDouble();
System.out.println("Enter number B");
b = sc.nextDouble();
System.out.println("Enter number C");
c = sc.nextDouble();
p = (a + b + c)/2;
d = Math.sqrt(p*(p - a)*(p - b)*(p - c));
System.out.println("Area of a triangle = " +d);
}
}
}