public static void Main()
int wordLengthAdd = word.Length -1;
bool caseSensitive=false;
Console.WriteLine("Does your sentence have the word " + word + " in it?");
string sentence = Console.ReadLine();
if (caseSensitive == false){
sentence=sentence.ToLower();
int doesExist = sentence.IndexOf(codeWord);
int check = (codeIndex) ? sentence.IndexOf(codeWord) : sentence.IndexOf(codeWord) +1;
Console.WriteLine("Your sentence does not include the word " + word + ".");
Console.WriteLine("The word " + word + " in your sentence is in character " + check + " to character " + (check + wordLengthAdd) +"!");