I understand what the while loops purpose is now. Changed code to this and all is well!

Code:
while (getchar() != '\n');
oldOrNew = getchar();

Code:
while (getchar() != '\n');
oldOrNew = getchar();
Thanks for your patience as I am super new to this!