yo guys , i wrote this program and compiled in turboc, but it gets error"declaration syntax error" .
whats the problem over here ? help me out thanks .Code:#include <stdio.h> int main() int isprime(int n) { if(n<2) return 0; for(int i=2;i<=n/2;i++) { if((n%i)==0) return 0; return 1; } }