private static int search(string phrase, string word)
var index = phrase.IndexOf(word);
public static void Main()
Console.WriteLine("Hello, user :)");
while (String.Compare(again, "Y", true) == 0 )
Console.WriteLine("Please enter a phrase, any");
string phrase = Console.ReadLine();
Console.WriteLine("Please enter one word or so");
string word = Console.ReadLine();
int index = search(phrase, word);
Console.Write("Thank you , User. Your word or char" + " : ");
Console.WriteLine(index);
Console.WriteLine("Thanks for playing. Would y");
again = Console.ReadLine();
Console.WriteLine("Goodbye :)");