This website requires JavaScript.
Explore
Help
Sign In
smits
/
ruby-uebungen
Watch
1
Star
3
Fork
You've already forked ruby-uebungen
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
fe2c1c6eb6
ruby-uebungen
/
Assignment_010
/
solution
/
readme.md
444 B
Raw
Blame
History
Lösung: Default Parameter
```ruby def produkt(a, b, c = 1, d = 1) a * b * c * d end
puts produkt(5, 7) puts produkt(5, 7, 8) puts produkt(5, 7, 8, 3)