Minggu, 28 Oktober 2012

mencari nilai x

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

/**
 *
 * @author mayang
 */
public class mayang {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
         int a=2;
        int b=6;
        int c=6;
        int d=4;
        int e=2;
        int f=2;
        int g=3;
        int x=(a+b/c-d*e-f/g);
        System.out.println(x);
    }
}

0 komentar:

Posting Komentar