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
[mjc2wsl.git] / samples / Rek1.mj
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