-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprogram.amm
More file actions
59 lines (47 loc) · 731 Bytes
/
program.amm
File metadata and controls
59 lines (47 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
set a = 1;
set b = "test";
set c = true;
set c[5] = [1, 2, 3, 4, 5];
c += 12 * 2;
a = 2 + 2 * 2;
b = a^(2+2*2);
print "test";
if a > b {
print a;
} else if a > c {
print b;
} else {
print c;
}
func test(a, b="test") {
print a;
if a > 12 {
return true;
} else if a == 10 {
print "a jest rowne 10";
} else {
return 123;
}
switch a {
case 1:
print "a jest rowne 1";
break;
case 2:
print "a jest rowne 2";
break;
case 3:
print "a jest rowne 3";
break;
default:
print "a jest rowne czemus innemu";
break;
}
return 123;
}
for set x=0; x < 10; x = x + 1 {
a = a + 2;
}
while a < 10 {
print "a mniejsze od 10";
test(123);
}