diff --git a/pointers/pointers.go b/pointers/pointers.go index dfaeac1..400f5f4 100644 --- a/pointers/pointers.go +++ b/pointers/pointers.go @@ -6,7 +6,6 @@ import ( ) func main() { - var sum float64 var n int @@ -27,5 +26,4 @@ func main() { } average := sum / float64(n) fmt.Println("The average of the total numbers is:", average) - } diff --git a/testingLazyGIT/go.mod b/testingLazyGIT/go.mod new file mode 100644 index 0000000..e092793 --- /dev/null +++ b/testingLazyGIT/go.mod @@ -0,0 +1,3 @@ +module main + +go 1.27.0 diff --git a/testingLazyGIT/main.go b/testingLazyGIT/main.go new file mode 100644 index 0000000..5f40cda --- /dev/null +++ b/testingLazyGIT/main.go @@ -0,0 +1,11 @@ +package main + +import ( + "fmt" + "math" +) + +func main() { + a := 81.0 + fmt.Printf("the total a^2 will be: %f\n", math.Sqrt(a)) +}