Hi All,
I am writting a Currency Converter for a class and for some reason when I add my first value and hit enter the program fails... Any Thoughts? Thank You in advance.
Code:#include <stdio.h>
main()
{
int iOperand1 = 0;
int iOperand2 = 0;
int iResult = 0;
/* Currency Rates*/
printf("\n-=Currency Conversions=-\n");
printf("\nSouth Korean Won = 922.403\n");
printf("\nKuwait Dinar = 0.281700\n");
printf("\nItalian Lire = 1418.51\n");
printf("\nJamaica Dollar = 68.7264\n");
printf("\nAustralian Dollar = 1.18906\n");
/* Currency Converter*/
printf("\nEnter US Dollar Amount");
scanf("\n%d", iOperand1);
printf("\nEnter Currency to Exchange Rate");
scanf("\n%.2d", &iOperand2);
iResult = iOperand1 * iOperand2;
printf("The Exchange Rate is %.2d\n", iResult);
}

