lllustrating your answer using the buggy code below, explain in your own words what it means for variables to be defined “as locally as possible”, and why it is important. This code is intended to print one of two messages depending on whether an integer input is less than a secret number or not. The function, inputInt, correctly prints the given String and then returns a number input by the user.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here