Sabtu, 09 Maret 2013

MID SEMESTER 1 (NETBEANS)


1. Buatlah program integer dg hasil yang akan ditampilkan
dilayar hasil=6??

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

/**
 *
 * @author DhoNa
 */
public class ProgramInteger {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int a=3;
        a+= 3;
        System.out.println("hasil " +a);
    }
}

0 komentar:

Posting Komentar

© Bella Yulianita 2012 | Blogger Template by Enny Law - Ngetik Dot Com - Nulis