Sunday, 5 November 2017

java importan problems for exam



Problem 15:
What is the output of  the following question
System.out.println(3*3/4*8+99/3*4+3);
Output:
1 51
Problem 16:
What is the output of  the following question
System.out.println(3*3/4*8+992/3.0*4+3);
Output:
1341.6666666666667
Problem 17:
What is the output of  the following question
System.out.println(3*3+999/4*8+992/3.0*4+3);
Output:
3326.666666666667

No comments:

Post a Comment