Working math
This commit is contained in:
+2
-6
@@ -1,13 +1,9 @@
|
|||||||
import "fmt";
|
import "fmt";
|
||||||
|
|
||||||
function add(a: int, b: int) -> int {
|
function add(a: int, b: int) -> int {
|
||||||
const x = 10;
|
return a + b;
|
||||||
if (x > 5) {
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
fmt.Println("Hello World!");
|
fmt.Println(add(10, 10) / 2);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user