Created
March 6, 2020 14:57
-
-
Save hemantasapkota/a0510a01fd3cc186204bd5ae5f3d0b6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Arithmetic procedues | |
;; compute 2 + 3 and print | |
(format t "~A" (+ 2 6)) | |
;; print newline | |
(format t "~%") | |
;; compute 2 - 3 and print | |
(format t "~A~%" (- 2 3)) | |
;; compute 2 * 3 and print | |
(format t "~A~%" (* 2 3)) | |
;; compute 2 / 3 and print | |
(format t "~A~%" (/ 2 3)) | |
(format t "~A~%" (/ (- 7 1) (- 4 2))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment