add parameters to functions

This commit is contained in:
Peter
2023-12-13 15:27:55 +01:00
parent c4f9bbcbfa
commit c7bf88c33a
9 changed files with 190 additions and 41 deletions

View File

@@ -1,9 +1,11 @@
int a =20;
fun test() {
return 3;
fun test(a, b) {
return a*b;
}
x = test();
int b =test(6, 3);
print(x);
print(a);
print(b);