Last active
December 30, 2021 18:29
-
-
Save tkurtbond/9f8777bf16490499b79be3eb187d6c1f to your computer and use it in GitHub Desktop.
This file contains 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
(loop for f from -20 to 220 | |
do (let ((c (* (/ 5 9) (- f 32))) | |
(k (+ 273.15 (* (/ 5 9) (- f 32))))) | |
(format t "~6,2f℉ ~6,2f℃ ~6,2fK~%" f c k))) | |
(loop for f from -20 to 220 | |
for c = (* (/ 5 9) (- f 32)) | |
for k = (+ 273.15 (* (/ 5 9) (- f 32))) | |
do (format t "~6,2f℉ ~6,2f℃ ~6,2fK~%" f c k)) | |
(use-package :iterate) | |
(iter (for f from -20 to 220) | |
(let ((c (* (/ 5 9) (- f 32))) | |
(k (+ 273.15 (* (/ 5 9) (- f 32))))) | |
(format t "~6,2f℉ ~6,2f℃ ~6,2fK~%" f c k))) | |
(iter (for f from -20 to 220) | |
(for c = (* (/ 5 9) (- f 32))) | |
(for k = (+ 273.15 (* (/ 5 9) (- f 32)))) | |
(format t "~6,2f℉ ~6,2f℃ ~6,2fK~%" f c k)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment