the power function gives zero with %d but works fine with %f. why?
%d stands for decimal number and %f stands for float so when you use %d the answer actually is 0.xxx but since it's decimal the answer will be without the partial and it will output 0 however when you use %f it will gives you the answer specifically
the power function gives zero when i use %d but it works with %f. Why?