c# function

C#
public int AddNumbers(int number1, int number2){    int result = number1 + number2;    if(result > 10)    {    return result;    }    return 0;}public void SayHello()
{
Console.WriteLine("Hello") ;
}
//as basic as it gets 
//for a functionvoid draw() {
	//code here
}

//Calls the function every frame making nice and satisfying movement
void Update() {
	draw()
}
Source

Also in C#: