Huh?Code:#include <iostream.h> void main(void) { double num=0; for(int i=0; i<10; i++) num += 0.1; if(num==1.0) cout << "Final number is 1"; else cout << "Huh?"; }
Am I doing something really stupid, is my computer about to implode, or is something more subtle going on here?