numeric types
This commit is contained in:
7
01.go
Normal file
7
01.go
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Hello, world!")
|
||||||
|
}
|
||||||
11
02-Squares.go
Normal file
11
02-Squares.go
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func sumOfSquares(a, b int) int {
|
||||||
|
return a*a + b*b
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println(sumOfSquares(3, 2))
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user