{ Console.WriteLine("Create file from data?: (Y/N)"); Option = char.Parse(Console.ReadLine()); Option = char.ToUpper(Option); if (Option != 'Y' && Option != 'N') Console.WriteLine("Incorrect Response, please input a correct respose (Y/N)"); } while (Option != 'Y' && Option != 'N'); if (char.Equals(Option, 'Y')) { Manometer.Printvalues(density, interval); }; if (char.Equals(Option, 'N')) { Environment.Exit(0); };