Prateek


def power(a,b)
  result = (a ** b).to_i
end

puts power 2,4 # => "16"


These small snippets are best tried in irb.

You should use irb, really.
-- 
Posted via http://www.ruby-forum.com/.