Divide the line into spaces. Then grab the strings in the new string array, which are numbers, and run this function on them:
public static string Reverse( string s ) { char[] charArray = s.ToCharArray(); Array.Reverse( charArray ); return new string( charArray ); }
Then recombine the array into one line.
source share