The code defines an exchange rate variable and declares two float variables. It prompts the user to enter a dollar amount, converts it to Pakistani rupees by multiplying by the exchange rate, and prints the results.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views1 page
Dollar
The code defines an exchange rate variable and declares two float variables. It prompts the user to enter a dollar amount, converts it to Pakistani rupees by multiplying by the exchange rate, and prints the results.