fork download
  1. ; your code goes here
  2.  
  3. (let ((size (read)))
  4. (loop for y from 1 to size
  5. do (loop for x from 1 to size
  6. do (princ (if (or (= x y) (= x (- size (- y 1) ))) "X" " "))
  7. )
  8. (format t "~%")
  9. ))
  10.  
Success #stdin #stdout 0.02s 10584KB
stdin
9
stdout
X       X
 X     X 
  X   X  
   X X   
    X    
   X X   
  X   X  
 X     X 
X       X