RosettaCodeData/Task/Call-a-function/SenseTalk/call-a-function-5.sensetalk

14 lines
194 B
Plaintext

put 3 into a
get AddOne(a)
put "Value of a = " & a
// Value of a = 3
put 5 into b
get AddOne(container b)
put "Value of b = " & b
// Value of b = 6
function AddOne n
add 1 to n
end AddOne