public class Quizful {
public static void main(String[] args) {
Integer one = 1000;
Integer two = 2000;
System.out.print((one * 2 == two) ? "yes " : "no ");
System.out.print((two / 2 == one) ? "yes " : "no ");
}
}
There is missing a third line "System.out.println((one == two) ? "yes " : "no ");"
2018 Mar 15, 10:23:28 AM
The right answer is "yesyes", not "yesyesno"! Or something in the question is incorrect...
2017 Jun 20, 3:43:22 PM
Login in to like
Login in to comment