Predict the output of the following:
a) 17%2 = ?
b) 24/10 = ?
c) If int a=12, b=5, c=0; c=a/b;
What value will be stored in variable ‘c’?
d) Find out the error: float value=23.53; double d=43.53; System.out.println(value+d);
Answers
Answered by
1
Answer:
a) 1
b) 2( if the data type is int)
c) 2
d) float value=23.53,double d=43.53;
System.out.println(value+d);
(You can't use semicolon after 23.53)
Explanation:
Hope it helps
Similar questions