private static void Main(string[] args) { var discnt = new Discnt(); string inputFileName; string outputFileName; if (args == null || args.Length == 0) { inputFileName = "discnt.in"; outputFileName = "discnt.out"; } else if (args.Length == 2) { inputFileName = args[0]; outputFileName = args[1]; } else { Console.WriteLine("Command line parameters violation!"); return; } discnt.Run(inputFileName, outputFileName); }