Code:
Function GetBiggestValue(integer value1, integer value2) returns integer result
if value1 > value2
result = value1
else
result = value2
Function Main() returns nothing
integer userVal1
integer userVal2
integer userVal3
integer bigValue
userVal1 = Get next input
userVal2 = Get next input
userVal3 = Get next input
bigValue = GetBiggestValue(userVal1, userVal2)
bigValue = GetBiggestValue(bigValue, userVal3)
Put "Max value: " to output
Put bigValue to output