# Hello World Program in Ruby def total(one,five,ten,twenty, fifty, hundred) none = 1 * one nfive = 5 * five nten = 10 * ten ntwenty = 20 * twenty nfifty = 50 * fifty nhundred = 100 * hundred puts none + nfive + nten + ntwenty + nfifty + nhundred end total(0, 20, 11, 22, 1, 12)
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more