“非法使用浮点”
#include<iostream.h>
#include<conio.h>
#include<process.h>
main()
{
double a;
cout<<"Enter a number\n";
cin>>a;
for(int j=2;j<=a;j++)
if(a%j == 0)
{
cout<<"Its not a prime number\n";
exit(0);
}
else
cout<<"Its a prime number\n";
getch();
return 0;
}