Pass Fail Tutorial
From Progzoo
(Redirected from Tutorial 3 Function, Page 5 Multiple return - Pass/Fail)
Pass Fail
The return statement provides the result of the
function. The processing in the function stops at the return
statement and the rest of the code is ignored.
Pass or Fail
50 is the passing score. If the score is 50 or more then return "pass" otherwise return "fail".
[Font]
[Default]
[Show]
[Resize]
[History]
[Profile]