Grades 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.


We should return the following grades:

score 70 or more A
score between 60 and 69 B
score between 50 and 59 C
score between 40 and 49 D
score less than 40 F

[Font] [Default] [Show] [Resize] [History] [Profile]