my code words but its ugly;
it prints "donkey kong" to the console screen which is what i want. can you show me the correct way to do this with cleaner code because this is really hairy right now.Code:string word = "Hello World donkey kong"; if (word.Length > 0) { int i = word.IndexOf(" ") + 1; string str = word.Substring(i); int j = str.IndexOf(" ") + 1; string str_2 = str.Substring(j); Console.WriteLine(str_2); }