Skip to content

Instantly share code, notes, and snippets.

@fatih
Created February 8, 2013 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatih/4737398 to your computer and use it in GitHub Desktop.
Save fatih/4737398 to your computer and use it in GitHub Desktop.
deneme
x := [5]float64{ 98, 93, 77, 82, 83 }
// the notation ... specifies an array length equal to the maximum element index plus one.
a := [...]float64{ 98, 93, 77, 82, 83 }
var total float64 = 0
//for i := 0; i < len(x); i++ {
//total += x[i]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment