Discussion Locked

c language program

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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 */

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.