Updated hw6 to a newer version

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-01-24 21:23:08 -08:00
parent 9224001a22
commit 0c04936ccf
356 changed files with 8408 additions and 4725 deletions

14
hw6/hw4programs/fact.oat Normal file
View file

@ -0,0 +1,14 @@
int fact(int x) {
var acc = 1;
while (x > 0) {
acc = acc * x;
x = x - 1;
}
return acc;
}
int program(int argc, string[] argv) {
print_string(string_of_int(fact(5)));
return 0;
}