Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
(defun to-celsius (k)
|
||||
(- k 273.15))
|
||||
(defun to-fahrenheit (k)
|
||||
(- (* k 1.8) 459.67))
|
||||
(defun to-rankine (k)
|
||||
(* k 1.8))
|
||||
|
||||
(defun temperature-conversion ()
|
||||
(let ((k (read)))
|
||||
(if (numberp k)
|
||||
(format t "Celsius: ~d~%Fahrenheit: ~d~%Rankine: ~d~%"
|
||||
(to-celsius k) (to-fahrenheit k) (to-rankine k))
|
||||
(format t "Error: Non-numeric value entered."))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue