How would I use an if statement to form a condition for letters of the alphabet. For example, if I want to assign A through D to "first class" and D thru Z to "second class" ?
User will input a letter in either upper or lower case and the output should be either "first class" or "second clas". How do it do this?
I know how to get the input and the letter but I don't know how to make the range A - D. Is there a way apart from the long way of doing (If x = a....or.....or....or....or..) else (cout<
2007-05-06
20:21:49
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design