gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
new sample for ArrayTesting
authorDoni Pracner <quinnuendo@gmail.com>
Sun, 19 Jan 2014 21:16:15 +0000 (22:16 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Sun, 19 Jan 2014 21:16:15 +0000 (22:16 +0100)
samples/ArrayTest.mj [new file with mode: 0644]

diff --git a/samples/ArrayTest.mj b/samples/ArrayTest.mj
new file mode 100644 (file)
index 0000000..a098183
--- /dev/null
@@ -0,0 +1,20 @@
+program ArrayTest
+       int[] arr;
+       int i;
+       int max;
+{
+       void main(){
+               max = 10;
+               arr = new int[max];
+               i = 0;
+               while (i<max){
+                       arr[i] = max-i;
+                       i++;
+               }
+               i = 0;
+               while (i<max){
+                       print(arr[i],3);
+                       i++;
+               }
+       }
+}
\ No newline at end of file
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner