Life, the Universe, and Everything

Given a list of numbers and a number K, return whether any two numbers from the list add up to K. Example: given [10, 20, 15, 3, 7, 22] and K of 42, return true since 20 + 22 is 42. The basic challenge is to write a program that uses a hard-coded array and allows the user to enter a value for K before running the algorithm and returning true or false.