ruby-uebungen/Assignment_002/solution/readme.md

14 lines
463 B
Markdown

# Lösung: Case
<div style="border: 1px solid grey;"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>
```ruby
note = 3
text = case note
when 1 then 'sehr gut'
when 2 then 'gut'
when 3 then 'befriedigend'
when 4 then 'ausreichend'
else 'durchgefallen'
end
```