remove numbering for chapters
[challenge-bot] / curriculum / square.scm
CommitLineData
0e28a0a7 1(use-modules (skribilo source c))
2
3(document
4 :title [square]
5 (chapter
6 :title (source :language c [square()\;])
fde3e951 7 :number #f
0e28a0a7 8 (p [here's the output of ,(prog (source :language c [square()\;]))])
9 (figure
10 :legend "square();"
11 (image :file "square.png" :height 500))
12 (p [openscad draws a square for the code
13 ,(source :language c [square()\;]).])
14 (p [there are a couple other things worth noting here.
15 square is followed by an open and close parenthesis
16 ,(source :language c [()]), and then by a semicolon
17 ,(source :language c [\;])]))
18 (chapter
19 :title [square(1)\;]
fde3e951 20 :number #f
0e28a0a7 21 (p [here's the output of ,(source :language c [square(1)\;])])
22 (figure
23 :legend "square(1);"
24 (image :file "square1.png" :height 500))
25 (p [note that it's identical to the
26 ,(source :language c [square()\;]) output. this is because
27 by default, openscad guesses a value of 1 whenever a value
28 is left unspecified.]))
29 (chapter
30 :title [square(2)\;]
fde3e951 31 :number #f
0e28a0a7 32 (p [here's the output of ,(source :language c [square(2)\;])])
33 (figure
34 :legend "square(2);"
35 (image :file "square2.png" :height 500))))