numeric types

This commit is contained in:
2024-02-29 12:19:20 -06:00
parent dc35f59d0d
commit 461059e30a
2 changed files with 18 additions and 0 deletions

7
01.go Normal file
View File

@@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}

11
02-Squares.go Normal file
View 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))
}