I feel so weird, I have been programming for years and I'm having such a simple problem, when I input a number, the printed number is garbage.Code:#include <stdio.h> int main() { double b; scanf("%f", &b); printf("%f\n", b); system("pause"); return 0; }
I tried this code in a different computer and in a diferent compiler and it still won't work! if I use a float instead of a double it does work WTF.
Have a walked into the twilight zone or something?