LoginSignup
1
0

More than 3 years have passed since last update.

眠れない夜のために〜延々と2の冪乗を表示し続けるプログラム〜two〜

Last updated at Posted at 2019-01-13

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)
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0