Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
C++ Programming

Tutorial: Multiple return - 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.

1. Pass or Fail


Big

50 is the passing score. If the score is 50 or more then return "pass" otherwise return "fail".