using System;
class Program17
{
static void Main(string[] args)
// Call a subroutine
SayHello();
// Call a function
int result = AddTwoNumbers(5, 7);
Console. WriteLine("The Sum of the 2 numbers using Functions is:" + result);
}
// This is a subroutine
static void SayHello()
Console.WriteLine("Hello Guys ! This is called Subroutines !!! ");
// This is a function
static int AddTwoNumbers(int a, int b)
return a + b;