Looping in golang

75

i := 0
sum := 0
for i < 10 {
 sum += 1
  i++
}
fmt.Println(sum)

Comments

Submit
0 Comments