https://ide.codingblocks.com/s/42030
Try this:
1 4.22
Expected answer is 50.
can you please explain that why i’m getting wrong output?
I suspect it may be to do with real number precision, but I haven’t checked.
Step through the code and see what’s different about 4.22.
11 0.22 1.22 2.22 3.22 4.22 5.22 6.22 7.22 8.22 9.22 10.22