hi can someone help me check if my recursion is right? i cant seems to get the answer

Code:#include<stdio.h> int getBinomial(int, int); int main(void) { int n,k; printf("enter :"); scanf("%d %d", &n, &k); printf("binomial =%d", getBinomial(n,k)); return 0; } int getBinomial(int n, int k) { while(n>=0) { if(k==0 || k==n) return 1; } if(n>k && k>0) return getBinomial(n-1,k) + getBinomial(n-1, k-1); }