Answer is simple.
9 is integer and 5 is also integer. when integer will be divided by integer then the result will be 0 and it will be escalated to 0.00000 because you have used "%f" in printf()
If you want the correct result perform
9.0/5
Now you will for sure get the correct answer