I have written this code, but only two test cases have passed.
kindly have a look and tell me what is wrong with this code
import java.util.;
public class Main {
public static void main(String args[]) {
Scanner scn=new Scanner(System.in);
int N=scn.nextInt();
int height,hypo;
if(N%2==0)
{
int m=N/2;
int n=1;
height=(mm)-(nn);
hypo=(mm)+(nn);
}
else if(N%2!=0)
{
int m=(N+1)/2;
int n=(N-1)/2;
height=2mn;
hypo=((mm)+(n*n));
}
else System.out.print("-1");
System.out.print(height+" ");
System.out.print(hypo);
}
}