sample .net can a console app have methods code example
Example: c sharp console app programming
int a = 42;
int b = 119;
int c = a + b;
Console.WriteLine(c);
Console.ReadKey();
int a = 42;
int b = 119;
int c = a + b;
Console.WriteLine(c);
Console.ReadKey();