Refactored code structure
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
main() {
|
||||
x := f(2, 3)
|
||||
syscall(60, x)
|
||||
syscall(60, f(1) + f(2) + f(3))
|
||||
}
|
||||
|
||||
f(x, y) {
|
||||
return (x + y) * (x + y)
|
||||
f(x) {
|
||||
return x + 1
|
||||
}
|
@ -5,7 +5,7 @@ main() {
|
||||
}
|
||||
|
||||
print(address, length) {
|
||||
write(length-2, address, length)
|
||||
write(1, address, length)
|
||||
}
|
||||
|
||||
write(fd, address, length) {
|
||||
|
Reference in New Issue
Block a user