Enter the yen with input and get the answer of the dollar.

Yen = 108
The corresponding dollar is $1.0

Yen = 1000
The corresponding dollar is $9.25925925925926

yen = int (input ('Please enter the yen:'))

print ('The corresponding dollar is','{: .1f}'.format (yen/108),'The dollar is')

How can I write 1000 (yen) after running at 108 (yen) to get an answer?

  • Answer # 1

    Conditional expression for the already created programTrueofwhileIterate over the statement.