this code works on eclipse but not here, why?
" import java.util.Scanner; class Calc{ public static void main(String[] args) { double A, B, C; Scanner dis =new Scanner(System.in) ; System.out.println("Enter first number: ") ; A= dis.nextDouble() ; System.out.println("Enter second number: ") ; B= dis.nextInt() ; System.out.println("Enter third number: ") ; C= dis.nextInt() ; if(A>B || A>C){ if(B>C) { System.out.println(A*A+B*B); } else if(C>B){ System.out.println(A*A+C*C); } else if(C==B){ System.out.println(A*A+B*B); } } else{ System.out.println(B*B+C*C); } } }" pls help