43. Write a function in the program to return 1 if the number is prime otherwise return 0
#include<stdio.h> ( this applies in the given code )
#include
int prime(int );
int main()
{
int no;
printf(“\n Enter any No : “);
scanf(“%d”,&no);
if(prime(no)==1)
{
printf(” %d is Prime”,no);
}
else
{
printf(” %d is not Prime”,no);
}
return 0;
}