Problem 198239 · easy · Phase 01 Prerequisites & Setup

Currency Exchange Desk

input · arithmetic · f-strings · rounding

An exchange desk converts US dollars to euros. Read the amount in USD on the first line and the exchange rate (how many euros one dollar buys) on the second line. Print a single line <usd> USD = <eur> EUR, both values with exactly two decimal places.

Examples

Input:
100
0.92
Output:
100.00 USD = 92.00 EUR

Constraints

  • 0 <= usd <= 10**7, 0 < rate <= 100

Goals

  • Multiply an amount by an exchange rate
  • Print two formatted numbers on one line
Starting Python…