I need help on code that print out a middle word of string.
First Example:
Input: My name is Alex
Output: either name or is <– is the middle
Second Example:
Input: Hello. I Need help on my coding.
Output: Help <– middle word
Hopefully someone can help me out. I will try to follow up.
The full code :