diff options
author | Andreas Nüßlein <nutz@unfoog.de> | 2009-07-06 22:18:19 +0200 |
---|---|---|
committer | Andreas Nüßlein <nutz@unfoog.de> | 2009-07-06 22:18:19 +0200 |
commit | eeb8514dbbe0308ccc6b00247439d20ffa702e0e (patch) | |
tree | a2b4d8661910c6b9f3e63350831e5f4d4660de8d /praesentation/main.vrb | |
parent | 3ace855e1a5707de68c530c17f24cde226b19bb6 (diff) | |
download | swppy-eeb8514dbbe0308ccc6b00247439d20ffa702e0e.tar.gz swppy-eeb8514dbbe0308ccc6b00247439d20ffa702e0e.tar.xz swppy-eeb8514dbbe0308ccc6b00247439d20ffa702e0e.zip |
added presentation
Diffstat (limited to 'praesentation/main.vrb')
-rw-r--r-- | praesentation/main.vrb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/praesentation/main.vrb b/praesentation/main.vrb new file mode 100644 index 0000000..fc60849 --- /dev/null +++ b/praesentation/main.vrb @@ -0,0 +1,18 @@ +\frametitle {Gruppe: Quellsprache (Beispiel)}\begin {verbatim} +fun fib[a] + if a < 2 + @1 + end + @(call fib[a-1] + call fib[a-2]) +end + +fun main[] + sum = 0 + i = 1 + while i <= 10 + sum = sum + call fib[i] + i = i + 1 + end + @sum +end +\end{verbatim} |