Senin, 29 Oktober 2012

Variabel tipe data tugas

   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=(((b-d)*(-e)-(c*g))/a);
        System.out.println(x);
    }

    }

run:
-11
  BUILD SUCCESSFUL (total time: 0 seconds)

Tidak ada komentar:

Posting Komentar