using System.Diagnostics; internal class Program { static bool verbose = false; static bool continueOnError = false; static bool logging = false; private static void Main(string[] args) { int a = -11; int val; if (a >= 0) { val = a; } else { val = -a; } // 출력값 : 11 Console.Write(val); Console.WriteLine("과일 이름?"); var category = Console.ReadLine(); int price; switch (category) { case "사과": price = 1000; break; case "딸기": price = 1100; break; case "포도": price = 900; break; default: price = 0; break; } Console.WriteLine($"{category} 가격은 {price} 입니다."); if (args.Length != 1) { Console.WriteLine("Usage: MyApp.exe option"); return; } string option = args[0]; switch (option.ToLower()) { case "/v": case "/verbose": verbose = true; break; case "/c": continueOnError = true; break; case "/l": logging = true; break; default: Console.WriteLine("Unknown argument: {0}", option); break; } } }