gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d995d9c)
raw | patch | inline | side by side (parent: d995d9c)
author | Doni Pracner <quinnuendo@gmail.com> | |
Sun, 19 Jan 2014 21:16:15 +0000 (22:16 +0100) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Sun, 19 Jan 2014 21:16:15 +0000 (22:16 +0100) |
samples/ArrayTest.mj | [new file with mode: 0644] | patch | blob |
diff --git a/samples/ArrayTest.mj b/samples/ArrayTest.mj
--- /dev/null
+++ b/samples/ArrayTest.mj
@@ -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