593Software EngineeringMedium
What will the output of the following program? public class Test{ public static void main(String args[]){float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } }?
A3
B2
C0
D1
Correct answer
C. 0
Explanation
The correct answer is 0.