I have a simple doubt


float k = 0;
k+=0.2;
k=k+0.2; // here compliation error


compliation error Type mismatch: cannot convert from double to float