Trying to figure out why this would be an endless loop when you select y. Shouldn't it leave the do while loop when the user selects y or Y?
#include <iostream>
using namespace std;
int main()
{
int choice;
do {
cout << "Enter a number. If you would like to quit, press y.";
cin >> choice;
if (choice % 2 == 1)
{
cout << "Odd \n";
}
else
{
cout << "Even \n";
}
} while (choice != 'y'|| choice != 'Y');
return 0;
}