Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Currency Converstion

Status
Not open for further replies.

Dina110370

Technical User
Oct 30, 2003
1
US
I need to write a C Program to convert currency from US dollars to United Kingdom Pounds.
1 US dollar = 0.589051 United Kingdom Pounds
Si I guess I need a box to enter the amount in US dollars and then the program would calculate the amount and give the answer.

Thanks Dina
 
So what are you writing in ?

You need to get the users input, and multiply it by the currency factor (and store the converted value as a float.)

In fact, as you could have $9.99, I'd work all 3 values as floats and only display to 2 decimal places.

So what exactly are you stuck on ?

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top