You said that you have created a Console application, but there is
MessageBox.Show
in the code. This method is used in Windows Forms and WPF applications to show a message box, not in Console applications. Instead, use
Console.WriteLine
:
Console.WriteLine(mac);