public static void Main()
Console.WriteLine("Enter a sentence to convert to Pig Latin:");
string sentence = Console.ReadLine();
string pigLatin = ToPigLatin(sentence);
Console.WriteLine(pigLatin);
static string ToPigLatin (string sentence)
foreach (string word in sentence.Split())
firstLetter = sentence.Substring(0, 1);
restOfWord = sentence.Substring(1, sentence.Length - 1);
currentLetter = vowels.IndexOf(firstLetter);
sentence = restOfWord + firstLetter + "ay";