Belajar Pemrograman Java

Belajar Pemrograman Java

Mau Belajar database Pemrograman java yang di solo Di www.visitechsolo.com

package kuadrat;

/**
* 3 januari 2010
* @author krida prasetia
* Menghitung Geometri di java
*/
import java. util. Scanner;
public class HitungGeometri {

static Scanner sc = new Scanner(System.in);
static private Double p,l;

public static void main(String[] args) {

System. out. println(“Menghitung Luas Psg Panjang”);
System. out. print(“masukan data panjang=”);
p = sc.nextDouble();
System. out. print(“masukan data lebar=”);
l = sc.nextDouble();
Double L = HitungGeo.Luaspp(p,l);
System.out. println(“luasnya= “+ L);

}
public static Double Lsgtg(Double Alas, Double Tinggi)
{
return (Alas * Tinggi)/2;
}
}

salam dari Krida prasetia

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: