Is there anyway that when I ask for a y or n response that it will only allow the user to enter 1 character? I tried var=getchar(); and that didn't do it. It still will only look at the first character but I would like the user to type but 1 character.

Thank you!