Rabu, 28 Agustus 2013

Pembelajaran 2-Menggunakan Dua Variabel yang berbeda dalam Java


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Class;

/**
 *
 * @author Trisandiyana
 */
public class DuaVariabel {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

        int j=5;
        int k=9;
        double hasil;
        hasil = j + k;
        System.out.println("Jumlah dari kedua angka adalah : " +hasil);

    }
}

Tidak ada komentar:

Posting Komentar