undersatnding making funcations in c3 code example
Example 1: How to make a function in C#
public void SayHello(string name)
{
Console.WriteLine("Hello")
}
Console.WriteLine("What is your name?")
string name = Console.ReadLine() ;
SayHello(Adam)
Example 2: function c#
public int AddNumbers(int number1, int number2)
{
int result = number1 + number2;
return result;
}