Computer Science, asked by yadavganesh2683, 8 months ago

Predict the output: int a=10; System.out.println("Calculation result = "+(a%2));

Answers

Answered by shivaramcvm
0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 ... For example, 1+2*3-4/5+6%7 is interpreted as 1+(2*3)-(4/5)+(6%7) . ... Compare two doubles System.out.println((6.6) == (2.2 + 4.4)); //false // int is ... Exercise: Study the following program, and explain its output.

Similar questions