I am trying to find the shortest and longest string value based on length and im getting stuck. As of now the script exits after the writeline. I think the code needs some h
Your for loop condition is always false. i starts at 5 and you are checking for it to be less than 0... This is always false so the loop never starts.
And if that is just a typo, you are also putting the input into names[i] instead of word[i], and names[i] is never used again...