neither scanf() nor getchar() will "see"
any input from the 'ESC' key. It doesn't generate a 'character'
from the perspective of C's i/o library.
Ancient Dragon commented: Absolutely :) +17
AAChaoshand commented: will not do the work but will help the person, I like this method as it helps me understand the material. +0
zeroliken 79 Nearly a Posting Virtuoso
NormR1 commented: Spoonfeeding - doing the OPs work -3