public static void Main()
Console.Write("Enter a few words separated by spaces: ");
string userInput = Console.ReadLine();
if(string.IsNullOrWhiteSpace(userInput))
Console.WriteLine("You have not entered any text");
string concatString = "";
foreach (var word in userInput.Split(' '))
string upperFirstChar = char.ToUpper(word[0]) + word.ToLower().Substring(1);
concatString += upperFirstChar;
Console.WriteLine("Your string in PascalCase looks like this: {0}", concatString);