For this Question: Sara selects two different numbers from the range 1 to 50 and noted their sum as N. However later she Forgets which numbers she selected and now wants to know the total number of possible combinations she can have.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>forgottenNumbers()</b> that takes integer N argument.

Constraints:-
3 <= N <= 99Return the total number of choices Sara has.Sample Input:-
8

Sample Output:-
3

Explanation:-
(1, 7), (2, 6), (3, 5)

Sample Input:-
3

Sample Output:-
1, I have written this Solution Code: static int forgottenNumbers(int N){
    int ans=0;
    for(int i=1;i<=50;i++){
        for(int j=1;j<=50;j++){
            if(i!=j && i+j==N){
                ans++;
            }
        }
    }
    return ans/2;
}
, In this Programming Language: Java, Now tell me if this Code is compilable or not?