16 lines
188 B
Go
16 lines
188 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"math"
|
|
)
|
|
|
|
func add(x int, y int) int {
|
|
return x + y
|
|
}
|
|
|
|
func main() {
|
|
fmt.Println("You know Pi =", math.Pi)
|
|
fmt.Println("And You know 1+2 =", add(1, 2))
|
|
}
|