Using HASKELL
Define functionsumProduct thatreceives a list of numbers andreturns a pair, where thefirst component is the summation of the list elements, and thesecond component is the multiplication of the list elements. For example, if the input is [2,4,3,5] then the output is (14, 120).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here