Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
alok committed Apr 18, 2020
1 parent 1f73b63 commit 0fd68d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions program.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
(read))
(defun hello-you
(*name*)
(format t "Hello ~s!~%" *name*)
(format t "Hello ~a!~%" *name*)
(format t "Hello ~10a!~%" *name*)
(format t "Hello ~10@a!~%" *name*)
(format t "Hello ~a!~%" *name*) ;; ~a shows the value
(format t "Hello ~s!~%" *name*) ;; ~s shows quotes around the value
(format t "Hello ~10a!~%" *name*) ;; ~10a adds 10 spaces for the value with extra space to the right
(format t "Hello ~10@a!~%" *name*) ;; ~10@a adds 10 spaces for the value with extra space to the left
)
(setq *print-case* :capitalize)
(hello-you *name*)

0 comments on commit 0fd68d9

Please sign in to comment.