USD to Japanese Yen

Write a program that first asks the user to type in today’s exchange
rate between U.S. dollars and Japanese yen, then reads U.S. dollar values and converts
each to Japanese yen. Use 0 as the sentinel value to denote the end of dollar
inputs. Then the program reads a sequence of yen amounts and converts them to
dollars. The second sequence is terminated by the end of the input file.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.