Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function max(num1,num2)
- if (num1 > num2) then
- result = num1
- else
- result = num2
- end
- return result
- end
- print("The maximum of the two numbers is:", max(10,4))
- print("The maximum of the two numbers is:", max(3,22))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement