using System;
class GetTheSecondWordOfString_CSharp
{
static void Main()
{
string str = "c java c# python c++ rust";
string[] words = str.Split(' ');
if (words.Length > 1) {
string secondWord = words[1];
Console.WriteLine("The second word is: " + secondWord);
}
else {
Console.WriteLine("The input string does not contain enough words.");
}
}
}
/*
run:
The second word is: java
*/