Skip to content

Week1-2#2

Open
ChaseWoods89 wants to merge 5 commits intomasterfrom
week1-2
Open

Week1-2#2
ChaseWoods89 wants to merge 5 commits intomasterfrom
week1-2

Conversation

@ChaseWoods89
Copy link
Owner

No description provided.

int firstVowelIndex = userInput.IndexOfAny(vowels);
int firstYIndex = userInput.IndexOf('y');

string firstPart = userInput.Substring(0,firstVowelIndex);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will throw an exception if the word does not have a vowel or does not have a Y.
Also the logic does not correctly handle letters that start and end with a vowel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants