This discussion is archived
5 Replies Latest reply: Apr 3, 2013 11:39 PM by gimbal2 RSS

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

1000802 Newbie
Currently Being Moderated
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);

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points