Format %lf in printf was not supported in old (pre-c99) versions of c language, which created superficial inconsistency between format specifiers for double in printf and scanf.