where to write functions c# 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: c# function
public void SayHello()
{
Console.WriteLine("Hello") ;
}
//as basic as it gets
//for a function