June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
13
Task/Even-or-odd/Common-Lisp/even-or-odd-2.lisp
Normal file
13
Task/Even-or-odd/Common-Lisp/even-or-odd-2.lisp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
;; Project : Even or odd
|
||||
;; Date : 2018/03/05
|
||||
;; Author : Gal Zsolt [~ CalmoSoft ~]
|
||||
;; Email : <calmosoft@gmail.com>
|
||||
|
||||
(defun evenodd (nr)
|
||||
(cond ((evenp nr) "even")
|
||||
((oddp nr) "odd")))
|
||||
(dotimes (n 10)
|
||||
(if (< n 1) (terpri))
|
||||
(if (< n 9) (format t "~a" " "))
|
||||
(write(+ n 1)) (format t "~a" ": ")
|
||||
(format t "~a" (evenodd (+ n 1))) (terpri))
|
||||
Loading…
Add table
Add a link
Reference in a new issue