Answer the question
In order to leave comments, you need to log in
Why does the IDE terminal freeze when I enter code?
Hello, I entered this code and the terminal just freezes, I tried to delete and practice another code, everything works, but it is on this terminal that it hangs and does not display anything. Can someone explain why?
package main
import "fmt"
var a float64
func main() {
xs := []float64{98, 93, 77, 82, 83}
for y := 0; y < 5; y++ {
a += xs[y]
}
fmt.Println(a / float64(len(xs)))
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question