Click here to Skip to main content
15,938,022 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I need help to check if the user inputs letter or not.

User Input: 'talent' -> Continue Program
User Input: '98' -> Terminate program

What I have tried:

-------------------------------------------------------------------------------------
Posted
Updated 7-Dec-18 4:02am
v2

1 solution

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think! But bear in mind: everything the user enters is a sequence of characters: 'A' is a character, '9' is a character. ENTER is a character: '\n'
So I'd strongly suggest you read your homework question again - it's not at all clear from your description exactly what your teacher expects you to do.

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900