(write-line"———————————————————————————————————————————")(write-line"Program to print the even and odd numbers")(write-line"———————————————————————————————————————————")(setqa0)(princa)(loop(setqa(+a2))(terpri)(princa)(when(>=a10)(returna)))(terpri)(terpri)(setqa1)(writea)(terpri)(loop(setqa(+a2))(when(>a10)(returna))(princa)(terpri))(formatt"———————————————————————————————————————————")
Output
kodingwindow@kw:~$ clisp kw.lisp
———————————————————————————————————————————
Program to print the even and odd numbers
———————————————————————————————————————————
0
2
4
6
8
10
1
3
5
7
9
———————————————————————————————————————————
kodingwindow@kw:~$
Dear User, Thank you for visitng KodingWindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.