Contoh Sederhana Program Java

on 18 October 2010
public class lingkaran {

public static void main (String []args) {
float phi=3.14f;
float r=7;
double luas;
luas=phi*r*r;
String nama,npm;
nama="Priyo Santoso";
npm="55410403";
System.out.println("Nama=Priyo Santoso");
System.out.println("NPM=55410403");

System.out.println("Luas Lingkaran");

System.out.println("jari-jari="+r);
System.out.println("Luas lingkaran="+luas);
}

0 komentar:

Post a Comment

pengumuman

selamat datang di blognya priyo silahkan di follow ya

Isi priyo's blog

Powered By Blogger

Monggo di cari