Code submission for: Jordan Hudgens

Submission Status: Passed

Submitted for: December 31 - Build a Currency Converter in Ruby

Submitted at: August 02, 2017

# ¥
# £
# $

def currency_converter amount, location
  case location
  when 'US' then "$%.2f" % amount
  when 'Japan' then "¥%.0f" % amount
  when 'UK' then ("£%.2f" % amount).gsub('.', ',')
  end
end
Unsupported Browser

devCamp does not support ancient browsers.
Install a modern version for best experience.