Jumat, 05 April 2013

Contoh Program Java Perhitungan Sederhana


class ContohPerhitungan {
  public static void main(String[] args) {

    byte a = 1;
    short b = 2;
    int c = 3, d;

    d = a + b + c;

    System.out.println("Hasil = " + d);
  }
}

Tidak ada komentar:

Posting Komentar