For this Question: A number is said to be perfect if the sum of its digits is divisible by 5. Given a number N check if it is perfect or not.<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>PerfectNumber()</b> that takes integer N as argument.

Constraints:-
1 <= N <= 10000Return 1 if the given number is perfect else return 0.Sample Input:-
122

Sample Output:-
1

Explanation:-
1 + 2 + 2 = 5 which is divisible by 5

Sample Input:-
123

Sample Output:-
0, I have written this Solution Code: int PerfectNumber(int N){
int ans=0;
while(N>0){
ans+=N%10;
N/=10;
}
if(ans%5==0){return 1;}
return 0;
}, In this Programming Language: C, Now tell me if this Code is compilable or not?