g = "abcddq" i = 0 b = g.size j = b x = "" while i < b x = "#{g[i]}"*j print x.capitalize print "-" i += 1 j -= 1 end
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more