basics/elsif_without_else.rb

tests/_examples/basics/elsif_without_else.rb in the metorex repository.

# elsif without else clause
score = 75

if score >= 90
  puts "A"
elsif score >= 80
  puts "B"
elsif score >= 70
  puts "C"
elsif score >= 60
  puts "D"
end

Output:

C