C
C#•3y ago
TOLOXI

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
x0rld 👻 🎃
what do you mean by bigger ?
TOLOXI
TOLOXIOP•3y ago
the letter that comes first in the alphabet
x0rld 👻 🎃
you should put all in lowercase first I assume there is an implicit cast to int when you compare chars
TOLOXI
TOLOXIOP•3y ago
what if its uppercase?
mtreit
mtreit•3y ago
You can compare characters for greater than / less than
x0rld 👻 🎃
it will be clearly more complicated if you can't lowercase/uppercase all first
TOLOXI
TOLOXIOP•3y ago
but this code should be able to solve it righ?
TOLOXI
TOLOXIOP•3y ago
if im only using lowercase
x0rld 👻 🎃
probably yes
TOLOXI
TOLOXIOP•3y ago
its working thanks for the help
Want results from more Discord servers?
Add your server