Guest User

Untitled

a guest
Mar 16th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.16 KB | None | 0 0
  1. (defvar x)
  2. (setq x 0)
  3.  
  4. (loop for i from 0 to 1000 do
  5.     (if (eql (mod i 3) 0)
  6.     (setq x (+ x i))
  7.     (if (eql (mod i 5) 0)
  8.     (setq x (+ x i)))))
  9.  
  10. (print x)
Add Comment
Please, Sign In to add comment