public class lingkaran { public static void main(String[]args) { Scanner baca = new Scanner(System.in); int r; final double pi =3.14; double luas; double keliling; int diameter; System.out.print("masukan jari-jari: "); r = baca.nextInt(); keliling = 2*pi*r; luas = pi*r*r; diameter = 2*r; System.out.println("diameter lingkaran: "+diameter); System.out.println("luas lingkaran: "+luas); System.out.println("keliling lingkaran: "+keliling); } }
Sunday, March 30, 2014
Contoh Program Menghitung Luas dan Keliling Linkaran
berikut contoh program untuk menghitung luas dan keliling lingakaran menggunakan bahasa pemprograman java
import java.util.*;
Subscribe to:
Post Comments (Atom)
adidas nmd
ReplyDeleteadidas tubular
air max 2018
asics running shoes
kd 10
golden goose outlet
kate spade handbags
yeezy boost 350
air max 97
off white
look these up aaa replica bags reference buy replica bags online go to the website replica bags online
ReplyDelete