Dividing int by int yields an int. Dividing float by int yields a float.
For int, use %d. For float, use %f. If you mix them up, you get junk.
2
solved How this code is working actually? [closed]
Dividing int by int yields an int. Dividing float by int yields a float.
For int, use %d. For float, use %f. If you mix them up, you get junk.
2
solved How this code is working actually? [closed]