common lisp で書かれています。
ubuntuでの、CLISPのインストール方法は以下の通り。
sudo apt-get install clisp
TWO:コード
(defun two () (do ((i 1 (* i 2))) (() ()) (format t "~A ~%" i)))
python版
two.py
#!/usr/bin/python3
i=1
while True:
i=i*2
print(i)
More than 3 years have passed since last update.
common lisp で書かれています。
ubuntuでの、CLISPのインストール方法は以下の通り。
sudo apt-get install clisp
TWO:コード
(defun two () (do ((i 1 (* i 2))) (() ()) (format t "~A ~%" i)))
python版
#!/usr/bin/python3
i=1
while True:
i=i*2
print(i)
Register as a new user and use Qiita more conveniently