5 questions0m 0s
Learn the skill
Define FUNCTION total(price, count): RETURN price * count; END for nonnegative integer inputs. Prices are whole fictional coin units, not real payments. Keep calculation separate from SHOW. Each call returns its own result and changes no outside state.
Worked example
SET cost TO total(4, 3); SHOW cost displays 12. The function can be tested without a screen. A separate caller decides whether, where or how to display the returned value.