using System; public class Program { public static void Main() { string input1 = "The weather is so sunny nowadays"; string input2 = "Life is so beautiful"; string output1 = ReverseString(input1); string output2 = ReverseString(input2); Console.WriteLine(output1); Console.WriteLine(output2); } public static string ReverseString(string input) { string[] words = input.Split(' '); Array.Reverse(words); return string.Join(" ", words); } }