<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">Hi,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">I am wanting to both print something and do something.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">I found an example in the Racket guide p.20 sec.2.2.1</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">Only nothing comes back in the interactions.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">It runs fine - no errors, but appears to do nothing.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"
size="2">Both printf and string-append are suppose to be in racket and racket/base.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">Any ideas?</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">Thanks, Carolyn</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">The code: (using Racket ver.5.1.1)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">#lang racket</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">(require racket/base)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">(define (bake
flavor)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">(printf "pre-heating oven...\n")</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">(string-append flavor " pie"))</font></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div></div></div></body></html>