CBSE Class 11 Computer Science Question 60 of 98

Python Programming Fundamentals — Question 22

Back to all questions
22
Question

Question 17

Write a program that takes amount in dollars, converts it into rupees. It then displays the converted amount.

Solution
amount = float(input("Enter amount in dollars "))
conversion_rate = float(input("Enter conversion rate "))
amount_in_rupees = amount * conversion_rate
print("Converted amount in rupees:", amount_in_rupees)
Output
Enter amount in dollars 70
Enter conversion rate 81
Converted amount in rupees: 5670.0
Answer