Answered You can hire a professional tutor to get the answer.

QUESTION

Given a list of numbers and a number k, return whether any two numbers from the list add up to k.

Need help with an Haskell program.Given a list of numbers and a number k, return whether any two numbers from the list add up to k. For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.The program must prompt the user for input.The program must accept the list as a collection of comma separated values. The values should all be integers.The input list can be between 1 and 42 number long.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question