-
Notifications
You must be signed in to change notification settings - Fork 0
/
math.txt
29 lines (27 loc) · 622 Bytes
/
math.txt
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
#!/mnt/c/Users/Public/Documents/TKOM/interpreter
fun main() {
int ia = 10;
double da = 2.5;
double db = -123.25;
int ib = @int 4.0 * da;
int ic = ia + ia * ib - 2;
double dc = da - db * (da + da) - 1.0;
int id = @int 4.1 * da;
print(@String ia);
print(@String ib);
print(@String ic);
print(@String id);
print(@String da);
print(@String db);
print(@String dc);
print(@String ia + ib);
print(@String da + db);
print(@String ia - ib);
print(@String da - db);
print(@String ia * ib);
print(@String da * db);
print(@String ia / ib);
print(@String da / db);
print(@String - ia);
print(@String - da);
}