RosettaCodeData/Task/Topic-variable/PicoLisp/topic-variable-2.l
2014-01-17 05:34:36 +00:00

9 lines
180 B
Common Lisp

(while (read)
(when (num? @)
(println (* @ @)) ) )
abc # Not a number
7 # Number
49 # -> print square
xyz # Not a number
3 # Number
9 # -> print square