fork download
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4. public static void main(String[] args){
  5. double valor;
  6. Scanner entrada;
  7.  
  8. entrada = new Scanner(System.in);
  9. valor = entrada.nextDouble();
  10. System.out.println( (valor&1 || valor<=2) ? "NO" : "YES");
  11.  
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
20
compilation info
Main.java:10: error: bad operand types for binary operator '&'
		System.out.println( (valor&1 || valor<=2) ? "NO" : "YES");
		                          ^
  first type:  double
  second type: int
1 error
stdout
Standard output is empty