Hello,
It's has been a long time since my last post here(just saying).
Anyway, here's my code:
If could spare a few minutes for me, and run the program, you'll notice, that the message doesn’t appear(even though 0.8, as you know, is the answer, and the 'for' loop definitely covers that number).Code:double i; for(i = 0;i<1;i=i+0.1){ if(i*2 == 1.6)printf("%s\n", "Found the Number"); }
Any suggestions?
Thank you very much for your attention,
Thanks,
Daniel
P.S
I've tried the code in Java, Qbasic, and it's working perfectly on them...



LinkBack URL
About LinkBacks
(just saying).


