public static void main(String[] args) {
Scanner in = new Scanner (System.in);
float phi = (float) 3.14;
float jari, luas, keliling;
System.out.println("Program Menghitung Luas dan Keliling Lingkaran");
System.out.print("Masukkan jari-jari\t:");
jari = in.nextFloat();
luas = phi * jari * jari;
keliling = 2 * phi * jari;
System.out.print("Luas Lingkaran\t\t:");
System.out.println(luas);
System.out.print("Keliling Lingjaran\t:");
System.out.println(keliling);
// TODO code application logic here
}
}
Minggu, 06 Oktober 2013
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar