Relative Content

Tag Archive for c#console-applicationrider

Console application requiring input multiple times

See Code below…I’m attempting to get a more immediate response to the start of my program, this is rough and not a finished product by any means. My issue lies within the if else statement i believe. when i attempt to enter “Y” or “N” as per the prompt, i have to enter it several times for the console to recognize the input and spit out the appropriate response. I’d prefer if it only took one input entry to output the respective response. As of right now, this is not the case. I have also attached console output to put into perspective. As you can see, the console wants me to input Y twice, rather than once<<which is what I intend for it to do(same goes for N).

Requesting Assistance with Code, any and all answers are welcome

See Code below…I’m attempting to get a more immediate response to the start of my program, this is rough and not a finished product by any means. My issue lies within the if else statement i believe. when i attempt to enter “Y” or “N” as per the prompt, i have to enter it several times for the console to recognize the input and spit out the appropriate response. I’d prefer if it only took one input entry to output the respective response. As of right now, this is not the case. I have also attached console output to put into perspective. As you can see, the console wants me to input Y twice, rather than once<<which is what I intend for it to do(same goes for N).