No matter what the value is it always passes to ok
Your program CSD(x) does not depend on x, but on d...
Success!Luc