stopping a program when the number entered is zero my main says:
cout << "Enter a number to test for primality, or zero to exit ->: ";
soo im not sure exactly how to do this normaly i would close it like this:
cout << "Press ENTER to finish...";
cin.ignore(99,'\n');
return 0;
}
@bufbill: your if statements are assignments not comparisons.