class Ints0 { // A demonstration of int arithmetic and precedence public static void main(String[] args) { int a=3, b=4, c=5, d; System.out.println(); System.out.println("a = "+a); System.out.println("b = "+b); System.out.println("c = "+c); System.out.println(); System.out.println("Executing d=a+b "); d=a+b; System.out.println("d = "+d); System.out.println(); System.out.println("Executing b=d*a"); b=d*a; System.out.println("a = "+a); System.out.println("b = "+b); System.out.println("c = "+c); System.out.println("d = "+d); System.out.println(); System.out.println("Executing d=b-c*a"); d=b-c*a; System.out.println("a = "+a); System.out.println("b = "+b); System.out.println("c = "+c); System.out.println("d = "+d); System.out.println(); } }