Q:

I cannot find what is wrong with this C program to check whether a number is prime or not using function

I know this may be a dumb question, but I cannot find what is wrong with this code. Here I have initialized a function which checks whether the number entered is prime or not.
#include <stdio.h>
int check_prime(int n)
{
    int i,count=0;
    for(i=2;i<n/2;i++)
     {
         if(n%i==0)
          {
              count++;
          }
     }
     if(count==0)
      {
          printf("the number is prime");
      }
    
}
int main()
{
    int n;
    printf("enter the number,\n");
    scanf("%d",&n);
    int check_prime(int n);
    return 0;
}

the output only shows:
enter the number

after I enter the number it does not display anything.

A:

int check_prime(int n);

Is not a call of function but a declaration of function.
It should be
check_prime(n);

to call the function.

