Ask questions, share knowledge, and connect with a vibrant community on IDNLearn.com. Our community provides accurate and timely answers to help you understand and solve any issue.

Define a haskell function named “addUs” that adds 2 input numbers.
Using this function as a building block, define a Haskell function “multiplyUs” that
multiplies two input numbers.
The multiplyUs function should cater to following:
1. Inputs may be signed numbers e.g. “multiplyUs (-2) * (3)” should result in “-6”
and “multiplyUs (-2) * (-6)” should result in “12”
2. It should use guard expressions and recursion.
3. No need to write the main function to do user interaction writing definition for
“addUs” and “multiplyUs” is sufficient


Sagot :

Thank you for participating in our discussion. We value every contribution. Keep sharing knowledge and helping others find the answers they need. Let's create a dynamic and informative learning environment together. Thank you for choosing IDNLearn.com. We’re dedicated to providing clear answers, so visit us again for more solutions.