Jumat, 19 Juli 2013

Membuat Aritmatika dengan Java Netbeans

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

/**
 *
 * @author jaya
 */
public class Aritmatika {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
 
    int a=8;
    int b=2;
    int c=a-b;
    int d=a/b;
    int e=a+b;
    int f=a*b;
    System.out.println (c);
    System.out.println (d);
    System.out.println (e);
    System.out.println (f);
           
    }
   
}


0 komentar: