- 1

What's the value of "a" after execution of the code?

public class Program { public static void main(String[] args) { double a,b,c; double x_y,a_b,c_d; a=x_y=44; b=c_d=62; c=a_b=58; a=6; b=3; c=9; System.out.println("value of a & x_y :"+a+" & "+x_y); System.out.println("value of b & c_d :"+b+" & "+c_d); System.out.println("value of c & a_b :"+c+" & "+a_b); } }

1st Jul 2017, 11:30 AM
Shauzab Khan
Shauzab Khan - avatar
3 ответов
0
it should be 6. code looks clean. the result should be obvious if you run it.
1st Jul 2017, 11:51 AM
Venkatesh Pitta
Venkatesh Pitta - avatar
0
yes. it is 6.
1st Jul 2017, 11:53 AM
Shauzab Khan
Shauzab Khan - avatar
0
6
1st Jul 2017, 5:28 PM
josh mizzi
josh mizzi - avatar