Keliling Lingkaran Dengan Java
Berikut contoh program keliling lingkaran dengan java.
//PROGRAM 2-2
class KelilingLingkaran {
public static void main(String[] args) {
double pi = 3.1416;
double r = 2.12;
double keliling;
keliling = 2 * pi * r;
System.out.println("Keliling lingkaran = " + keliling);
}
}
class KelilingLingkaran {
public static void main(String[] args) {
double pi = 3.1416;
double r = 2.12;
double keliling;
keliling = 2 * pi * r;
System.out.println("Keliling lingkaran = " + keliling);
}
}
Keliling Lingkaran dengan Java
Reviewed by ReyGumay
on
November 24, 2016
Rating:
No comments: