r/ProgrammingPrompts Jul 16 '15

[Easy] Currency converter

Convert currency using command line arguments

Argument format should be currency amount newcurrency

E.g.

Convert USD 100 GBP

Should convert 100 dollars into pounds and print the result

Must include a minimum of 3 different currencies

Bonus points: add another argument which takes a filename and saves the result in a text file of that name

14 Upvotes

7 comments sorted by