Question : why the output of this program is true ?
nd when i take the value of a is 0.6 then it is false ??
It happens because you use the float data type. it is known for its imprecision. If you want to have the correct work in such cases, it is better to use double. They are called double precision type for a reason.