From 4c8825db2147d7953ffbc564d8307cd4eec00d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20N=C3=BC=C3=9Flein?= Date: Mon, 6 Jul 2009 22:18:59 +0200 Subject: praesentation -> doc/praes2 --- doc/praes2/main.vrb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/praes2/main.vrb (limited to 'doc/praes2/main.vrb') diff --git a/doc/praes2/main.vrb b/doc/praes2/main.vrb new file mode 100644 index 0000000..fc60849 --- /dev/null +++ b/doc/praes2/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} -- cgit v1.2.3