gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
move samples to 'alpha-mj' subfolder
[mjc2wsl.git] / samples / RekFac.mj
diff --git a/samples/RekFac.mj b/samples/RekFac.mj
deleted file mode 100644 (file)
index 674cc14..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-program RekFac{
-
-       int factorial(int f)
-       {
-               if (f<0) 
-                       return 0;
-               if (f<=1) 
-                       return 1;
-               return factorial(f-1) * f ;
-       }
-       
-       void main()
-       {
-               print(factorial(3),3);
-               print(factorial(10),10);
-       }
-}
\ No newline at end of file
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner