Can someone help me out with my Code Coach problem with the ceil function of math.h of C++?
IDK why does it happen! There are two Code Coach problems (including the Average Word Length one) I decided to solve using C++ which required me to round up a certain value. I included math.h safely and used the ceil function. But unfortunately, each time my code succeeded in only two cases (first and fourth) and the rest three failed. The expected output in the second case of one of those problems was 5 whereas my code output 3. I even tried with cmath in place of math.h, but everything went in vain. Please help me.