C:\DATA\Java2\Dos>java Let a: 1 b: 4 c: 1 -- Press any key to exit (Input "c" to continue) -- |
class Let { public static void main(String args[]) { int a,b,c; a= 1; b= 2; c= a; b= b+1; b= a+b; System.out.print("a: " + a); System.out.print(" b: " + b); System.out.println(" c: " + c); } } |
{ int a,b,c; a= 1; b= 2; c= a; |
b= b+1; b= a+b; |
System.out.print("a: " + a); System.out.print(" b: " + b); System.out.println(" c: " + c); |
a: 1 b: 4 c: 1 |
int a,b; a= 3; b= 7; a= b; b= a; |
int a,b,c; a= 3; b= 7; |
int a,b; a= 3; b= 7; |