Question PRG-JAVA-0066
HardWhat is the output of this program?
public class Main {
public static void main(String[] args) {
System.out.println(10 / 3 + " " + 10 % 3 + " " + -10 / 3 + " " + -10 % 3 + " " + 10.0 / 4);
}
}
- A.
3.33 1 -3 -1 2.5
- B.
3 1 -4 2 2.5
- C.
Sign up free to see the answer and a step-by-step explanation.