Jump to content

Arithmetic/Integer: Difference between revisions

no edit summary
(→‎{{header|C#}}: fix header ('#' character causes problems))
No edit summary
Line 84:
}
}
 
=={{header|Common Lisp}}==
 
(defun arithmetic ()
(let ((a (read *query-io*)) (b (read *query-io*)))
(format t "a + b = ~a~%" (+ a b))
(format t "a - b = ~a~%" (- a b))
(format t "a * b = ~a~%" (* a b))
(format t "a / b = ~a~%" (/ a b))
(format t "a % b = ~a~%" (mod a b))))
 
=={{header|E}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.