This has me a bit stumped but I must be doing something wrong here, if you don't mind checking this for me would be greatly appreciated.
int main ()
{
int input;
cout << "Enter a positive intiger to determin if it is odd or even (-1 to cancel): ";
cin >> input;
if ( input != -1)
{
cout << "Thank you please close the program./n";
}
else if (input%2 == 0)
{
cout << "The number is Even./n";
}
else
{
cout << "The Number is Odd./n";
}
return 0;
}