Skip to content

Commit e98bc85

Browse files
committed
add
1 parent b2c7568 commit e98bc85

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

yuheng/day01/add.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package main
2+
3+
func add(x, y int) int {
4+
return x + y
5+
}
6+
7+
func main() {
8+
x := 0x100
9+
y := 0x200
10+
z := x + y
11+
add(x, y)
12+
println(z)
13+
}
14+
15+
//go build -gcflags "-m" -o test add.go

yuheng/day01/test

975 KB
Binary file not shown.

yuheng/day01/test1

8.27 KB
Binary file not shown.

0 commit comments

Comments
 (0)