+ 1
Please tell me why it is not giving decimal values of even after float value . For example for 4 . Thank for help 🙂
2 Respostas
+ 3
sum and n are both integers. In C dividing an integer by an integer returns an integer. Assigning the result to a float variable doesn't change that.
0
Thank you very much ☺️