Pass Fail Tutorial

From Progzoo
Jump to: navigation, search

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]