-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservusProgram2.py
63 lines (54 loc) · 1018 Bytes
/
servusProgram2.py
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
60
61
62
63
start;
# frei;
dim f1, f2, f3, i, j, k als float;
dim MAT1[3][3] als float;
dim MAT2[3][3] als float;
dim MAT3[3][3], arr1[3] als float;
dim arr2[3] als float;
dim sA, sB als wort;
def main{
lass sA <- "Juan";
lass sB <- "Pedro";
return ;
}
# lass f1 <- 8.9 + 3 - 2;
# lass f2 <- 0;
# lass f3 <- 3 + 2;
# lass i <- 0;
# lass j <- 0;
# lass MAT1[i][j] <- 9;
# lass MAT2[0][0] <- MAT1[i][j];
# lass i <- (f3 > f2) ? 0 : f2;
# fur i <- 0 in f3{
# fur j <- 0 in 3{
# druck i;
# druck j;
# lass MAT1[i][j] <- i * j;
# }
# }
# wenn (f2 == 0) && f3 > 0 {
# druck "IF TRUE";
# }
# sonst {
# druck "IF FALSE";
# }
# waerend (f2 <= f3){
# druck f2;
# lass f2 <- f2 + 1;
# }
# druck "dowhile loop";
# tun{
# lass f3 <- f3 + 3;
# druck f3;
# } solange (f3 < 30);
# druck "This is a for loop";
# fur i <- 0 in 2{
# fur j <- 0 in 3{
# fur k <- 0 in 3{
# druck k;
# }
# druck j;
# }
# druck i;
# }
ende;