Print white spaces

Discussion of Common Lisp
Post Reply
aedsferrao
Posts: 3
Joined: Tue Nov 08, 2011 1:04 pm

Print white spaces

Post by aedsferrao » Wed Nov 16, 2011 7:06 am

Hi!

I have another question, how can i print white spaces??

I need to print this

Code: Select all

O   *   O
*X  O*  ****
**X  **O  O**
*****XX*****
Thank you.
Last edited by nuntius on Wed Nov 16, 2011 10:11 pm, edited 1 time in total.
Reason: add code tag

nuntius
Posts: 538
Joined: Sat Aug 09, 2008 10:44 am
Location: Newton, MA

Re: Print white spaces

Post by nuntius » Wed Nov 16, 2011 10:10 pm

string literal: (print " ")

character literal: (format t "~A" #\Space)

Post Reply