Guest User

Untitled

a guest
Sep 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. interest (n,a,p)
  2. | n > 0 = interest (n-1,a,p)
  3. where a = (a*p)/100
  4. | otherwise = a
  5.  
  6. E:\Module1week3scripts.hs:35:2: error: parse error on input `|'
  7. |
  8. 35 | | otherwise = a
  9. | ^
Add Comment
Please, Sign In to add comment