c language program - TechRepublic
General discussion
June 25, 2005 at 04:02 PM
awad_zaidan

c language program

by awad_zaidan . Updated 21 years ago

write a c program that display a title curancy conversion . and then write the name of five currencies and thier equivalent to the us dollar . The conversions should be hard coded equations . the program should give the value of one ynit of the foreign currancy in us dollars.

1* Currency conversion */
/*conversions equations should give the value of
One unit of the foreign currency in us dollars */
/* Programmer: Awad Zaidan */
/*date: 6/22/2005 */
/* version: 1.0 */

/* standard I/O library definition */
# include < stdio.h >

/* reporting rate of exchange as 6/23/2005 */

#define lira .7540; /* Italy Exchange Rate */

#define Dinar .7080; /* Jordan Exchang Rate */

#define Peso 11.09 ; /* Mexeco Exchange Rate */

#define Riyal 3.75 ; /* Saudi Arabia Exchange Rate*/

#define Peseta .7540; /*Spain Exchange Rate */

This discussion is locked

All Comments