gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
new sample Rek1 - very simple recursion that is good for testing
authorDoni Pracner <quinnuendo@gmail.com>
Sun, 5 Jan 2014 19:17:30 +0000 (20:17 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Sun, 5 Jan 2014 19:17:30 +0000 (20:17 +0100)
samples/Rek1.mj [new file with mode: 0644]

diff --git a/samples/Rek1.mj b/samples/Rek1.mj
new file mode 100644 (file)
index 0000000..41ab83b
--- /dev/null
@@ -0,0 +1,11 @@
+program Rek1{
+       void func(int i){
+               print(i);
+               if (i>0) 
+                       func(i-1);
+       }
+       
+       void main() {
+               func(5);
+       }
+}
\ No newline at end of file
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner