Posts by Danilo Baptista • 31 points
1 post
-
1
votes1
answer78
viewsQ: Doubt receive 3 numbers and tell if the first is equal to the sum of the other two in LISP
I’m doing a function in Lisp that receives 3 numbers and says if the first is equal to the sum of the other two, the code I arrived was this: (defun maior(n1 n2 n3) (if (=(+ n2 n3)n1) (format t "~D…
lispasked Danilo Baptista 31