ruby-uebungen/Assignment_002/solution/readme.md

15 lines
181 B
Markdown
Raw Normal View History

2023-05-23 09:19:31 +02:00
# Lösung: Case
2023-05-25 17:49:42 +02:00
2023-05-23 09:19:31 +02:00
```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
```