5 Replies Latest reply: Apr 4, 2013 1:39 AM by gimbal2 RSS

    what is the way to Calculate (C) how is the result are 3

    1000802
      public class NewClass4 {
      public static void main(String[] args) {
      int a = 1;
      int b = 2;
      int c = 3;
      a += 5;
      b *= 4;
      c += a * b;
      c %= 6;
      System.out.println("a = " + a);
      System.out.println("b = " + b);
      System.out.println("c = " + c);