Wrong test cases

i am getting the correct output
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=0,c=0;
int m=2;
for (int n = 1; n < m; n++) {
a = m * m - n * n;
b = 2 * m * n;
c = m * m + n * n;
}
System.out.println(b + " " + c);
}
}
but my test cases are wrong

Your logic isn’t correct.
Please refer to this video and try solving it again.

Also, in future please us the online IDE to share your code.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.