ruby-uebungen/Assignment_002/solution/readme.md

14 lines
463 B
Markdown
Raw Normal View History

2023-05-23 09:19:31 +02:00
# 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
```