Hello I'm doing a program for a homework. I'm using Miracle C compiler.
this is what I have to do;
Write a C program that displays the title "Currency Conversion," and then write the names of five currencies and their equivalents to the US dollar. The conversions are hard coded equations.
and this is what I have
//variable declarations for constant conversion equations
const float f_const_USD = 1.00; //1.00 USD = 1.00 United States Dollar
const float f_const_EUR = 0.569280; //1.00 USD = 0.9223357 Europe EURO
const float f_const_JPY = 1.15940; //1.00 USD = 118.218 Japan Yen
const float f_const_MXN = 10.7010; //1.00 USD = 10.79889 Mexico Pesos
const float f_const_RUB = 115.860; //1.00 USD = 31.9191 Russian Ruble
const float f_const_SEK = 7.75760; //1.00 USD = 8.48792 Swedish Kronor
//print title of program
//print currency conversions
printf("\nOne United States Dollar Equals...");
printf("\n%f.2,f_const_EUR Europe EURO");
printf("\n%f.2,f_const_JPY Japan Yen");
printf("\n%f.2,f_const_MXN Mexico Pesos");
printf("\n%f.2,f_const_RUB Russian Ruble");
printf("\n%f.2,f_const_SEK Swedish Kronor");
printf("\n\nI Did It Again!");
But I have this;
Miracle C Compiler (r3.2), written by bts.
Compiling C:\Program Files\Miracle C\Currency Convertion Program.c
C:\Program Files\Miracle C\Currency Convertion Program.c: line 17: Parse Error, expecting `','' or `SEP'
'float f_const_USD = 1.00'
What I have to do I need help.