The for loop is meant to check if there are any repeating characters. My logic is that, once I sort the array, if there are any repeating characters, they will be next to each other, and so the IF should turn the NOTREPEATING boolean into false
The for loop in question is the last one, the sentence2[i] == sentence2[i++] one. When I remove it, the program works completely fine. With it, it suddenly does not print the last writeline saying it is correct even if it is
❔ Indexing with [] to an expression type IEnumerable / array
If I want to include numbers in an array/list, what else should I do other than Convert.ToInt32? In my college the teacher taught me to do that whenever trying to get an int from the user