Tuesday, 31 October 2017
java conceptual input output problems
Question 03
Show the output of the following .
int i=9,j=8,k=4;
System.out.println(i+k*9/2+k);
System.out.println(i+k*9.0/2+k);
System.out.println(j+k*3/3*1.0+8);
Output:
31
31.0
20.0
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment