can someone tell me where i am wrong with my logic?
The console asks for a char of 's' || 'c' || 't' || 'e' || 'n' || 'o' and if it is not one of these a while loop below shows up. But the while loop always implements even if it is one of those values.
Well first of all, if your going to write code please use code tags (<> button) as it makes it easier to read, but getting to your problem, since you are using a char you need to make it into an array and declare its position in that array because other wise your compiler will give you an error. Here is an example:
Because otherwise it doesn't compile right 100% of the time. If you don't make it an array then you could make it a string but seeing as its only one letter it makes more sense to make it into an array.