Question: why 2f is used in c?
Answer: 2f in c? They are format specifications to print the value of a floating point number with 1 (%. ... The same specification can also be used to read floating point numbers if you are certain that the number input contains exactly that many decimal places.