16 06 2014
2. Soru
Soru 2
import java.util.Scanner;
public class daireUcgen {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print(“a değerini giriniz:”);
double a = sc.nextDouble();
System.out.print(“b değerini giriniz:”);
double b = sc.nextDouble();
System.out.print(“c değerini giriniz:”);
double c = sc.nextDouble();
double s=(a+b+c)/2;
double R = (a*b*c)/(Math.sqrt((s*(s-a)*(s-b)*(s-c)))*4);
System.out.println(“Sonuç: ” + R);
}
}