#include <stdio.h>
int main()
{
char opt;
do
{
printf ("Enter y or n: ");
opt = getchar();
}
while (opt != 'y' || opt != 'n');
}
okay so my code does not stop when I enter y or n, which I think it should.