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
![](https://utfs.io/f/2dea03c4-e4bb-4deb-9298-e7d38267da87-1nq2cb.png)
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
![](https://utfs.io/f/356d65d3-98eb-42d8-93fe-fdbc15e9f256-4pl4mu.png)
it will be clearly more complicated if you can't lowercase/uppercase all first
but this code should be able to solve it righ?
![](https://utfs.io/f/b2f046eb-5712-4d3d-a926-8f7fc2a832c9-4pl4mu.png)
if im only using lowercase
probably yes
its working
thanks for the help