Debian Codegraph @

terps/tads/tads3/test/data/cube.t

raw
1 #include "tads.h"
2
3 main(args)
4 {
5 local c1 = cube(1), c2 = cube(2), c3 = cube(3);
6 local cc3 = cube(c3);
7
8 "1 cubed = <<c1>>, 2 cubed = <<c2>>, 3 cubed = <<c3>>\n";
9 "3 cubed cubed <<cc3>>\n";
10 }
11
12 cube(n)
13 {
14 return n * n * n;
15 }