CIS 252 In-class Activity #1 1 2 3
Name:
Consider the following Haskell function:
contrived :: Int -> Int -> Int
contrived m n
| even m && m > n = n*2
| odd n || n<3 = m| otherwise = m+n+1Fill in the table by giving the value of each expression.Expression Valuecontrived 100 7contrived 16 100contrived 321 7contrived 44 0contrived 95 0contrived 28 15.024 January 2017
Reviews
There are no reviews yet.