i am writing a program to output change for a vending machine in the minimum amount of coins. I want a way to select the corrent number from the array which is closest to the change value which is inputted for example: input 65, the closest value would be 50. I am sorry if my code is bad im really new