Changes

Jump to: navigation, search

The Ruby case Statement

16 bytes added, 13:32, 20 April 2009
Number Ranges and the case statement
result = case score
when 0..40: then "Fail" when 41..60: then "Pass" when 61..70: then "Pass with Merit" when 71..100: then "Pass with Distinction"
else "Invalid Score"
end

Navigation menu