The code you posted works just fine on my machine, it starts at 2.0 and goes all the way up to 102.1. Did you edit/fix it?

> Use %lf for double, %f is for floating point numbers

Wrong, use %f. Scanf() teaches horrible habits, this confusion being one of them.