Let’s suppose now you are asked to calculate value of k^2-50 for all integers from [-10,10] but only until k^2-50 becomes positive.
Let’s suppose now you are asked to calculate value of k^2-50 for all integers in [-10,10] domain but only until k^2-50 becomes negative.