 // Demonstrate the actions of functions and ЁА&ЁБ
void Print1 (number NUM1) // Function1: Gets the value of the passed variable (NUM1 is a reference variable).
{
NUM1 = NUM1 + 100
result ("Number in Print1:"+NUM1+"\n")
}
void Print2 (number &NUM1) // Function2: NUM1 is still a reference variable and &NUM1 is the passed variable.
{
NUM1 = NUM1 +10
result("Number in Print2:" +NUM1+"\n")
}
 void Print3 (number NUM1) // Function1: Gets the value of the passed variable (NUM1 is a reference variable).
{
NUM1 = NUM1 + 50
result ("Number in Print3:"+NUM1+"\n")
}

 
number N1
N1 = 30
result("Reference variable = "+N1+"\n") // N1 = 30
Print1(N1) // NUM1 = 30(NUM1) + 100 = 130
result("Still reference variable = " +N1+"\n") // Still N1 = 30
Print2(N1) // NUM1 = 30 (NUM1) +10 = 40
result("Reference variable + 10 = "+N1+"\n") // NUM1 = 30 (NUM1) +10 = 40 due to the "&" in "&NUM1"
Print3(N1) // 
result("Reference variable + 10 = "+N1+"\n") // 
