Topic: Array Problem / Level: beginner

Problem: Find the element in an array that is closest to a given number x.

Run the code to see the output here...