#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int count=1;
int divisor=2;
double x,squareRoot;
cin>>x;
squareRoot=sqrt(x);
while(divisor<=sqrt(x))
{
if(x mod divisor==0)
{
cout<<"x is not a prime number"<<endl;
count=count+1;
}
else if(x mod divisor!=0)
{
cout<<"x is a prime number"<<endl;
}
divisor=divisor+1;
}
return 0;
}
I HAVE WRITTEN THIS CODE AND WHEN I RUN IT COMPILER GIVES ERROR OF EXPECTED '>' before 'mod'
help plz!