>printf(" %5.2lf");
%lf is a double for scanf, with printf this flag means long double.

-Prelude