Computer Science, asked by shadmaashadma8399, 7 months ago

A traveler on a visit to India is in need of some Indian Rupees (INR) but he has money belonging to another currency. He wants to know how much money he should provide in the currency he has, to get the specified amount in INR. Write a python program to implement a currency calculator which accepts the amount needed in INR and the name of the currency which the traveler has. The program should identify and display the amount the traveler should provide in the currency he has, to get the specified amount in INR. Note: Use the forex information provided in the table below for the calculation. Consider that only the currency names mentioned in the table are valid. For any invalid currency name, display -1. Curre

Answers

Answered by nikhilnishad2131
1

Answer:

Explanation:he can go to currency exchanger

Answered by mad210203
0

Program is given below.

Explanation:

print("Welcome to currency converter")

print("Enter 1 to convert USD (Your currency) to INR.\nEnter 2 to convert INR to USD (Your currency).\n")

flag=input()

if flag==1:

print("Enter amount in USD: ")

USD=input()

INR=USD*70

print("Amount in INR = ")

print(INR)

elif flag==2:

print("Enter amount in INR: ")

INR=input()

USD=(INR) / (70)

print("Amount in USD = ")

print(USD)

else:

print("-1")

Similar questions