scanf is an input function in C language. It means that when you enter a value from the keyboard and press Enter, it will save the value you entered to the computer. As for why %f is written later, %e.%lf,%c depends on the object of scanf.
For float, double, and char, use %f, %e, and %c respectively