I have following code snippet. When i run it it gives strange result.
printf("Amount1 is greater than Amount2\n",f1,f2);
printf("The Amounts are equal.");
Expected Ans is: The Amounts are equal.
But it is giving result as "Amount1 is greater than Amount2"
Actually both amounts have same value - 720.05. Then how C treats Amount1 greater than Amount2?
Can some one explain why this is happening & what's the solution to get correct result?