gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control systemdiff --git a/samples/alpha-mj-exp/gcd-proc-predef.mj b/samples/alpha-mj-exp/gcd-proc-predef.mj
--- /dev/null
@@ -0,0 +1,20 @@
+program procgcdinput{
+
+ int gcd(int a, int b)
+ {
+ while (a != b) {
+ if (a>b)
+ a = a-b;
+ if (a<b)
+ b = b-a;
+ }
+ return a;
+ }
+
+ void main()
+ int a;
+ int b;
+ {
+ print(gcd(12,8),3);
+ }
+}
\ No newline at end of file