See the pictures.
Whatever number I give, it just keep giving me ‘a’.
How to slove this?
I think if you want that sort of behavior, then you can use an array:
Array can work, thanks. But it confused me that enumeration behave like so. Where am I wrong?
Well, enumeration isn’t accessed with an index, that’s an array
Enumeration is just a list of fixed values.