how to print the bigger letter
Im trying to code a program where you type in two names and the name with the bigger first letter gets printed out
11 Replies
what do you mean by bigger ?
the letter that comes first in the alphabet
you should put all in lowercase first
I assume there is an implicit cast to int when you compare chars
what if its uppercase?
You can compare characters for greater than / less than
it will be clearly more complicated if you can't lowercase/uppercase all first
but this code should be able to solve it righ?
if im only using lowercase
probably yes
its working
thanks for the help