Find errors in the following code.
Code: int k, a; a = 3; k = 1; while(k < 10) printf(“\n%f AM %f”, k, k*a-1); k = k + 2; Error 1: The printf statement has a format specifier %f (float), but the variables k and k*a-1 are integers. This will cause incorrect output or undefined behavior. Fix: Change %f to %d … Read more