how to write a c program that allows the user to input grade and get the mark range using the switch statement,and the program only terminates when the user presses the esc key

Sounds like homework. If you post what you have tried so far I'm sure you would receive the help you are looking for.

Well if you are a begginer and looking for programs with verified outputs then i suggest you read my blog

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.