Updated hw6 to a newer version
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
9224001a22
commit
0c04936ccf
356 changed files with 8408 additions and 4725 deletions
15
hw6/hw4programs/setg.oat
Normal file
15
hw6/hw4programs/setg.oat
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
global x = 42;
|
||||
int set_x(int y) {
|
||||
var z = 0;
|
||||
while (z < y) {
|
||||
z = z + 1;
|
||||
if (z == 37) {
|
||||
return z;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
int program (int argc, string[] argv) {
|
||||
x = set_x(30);
|
||||
print_int(x);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue