Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- arr := [5]int{1, 2, 3, 4, 5}
- for _, e := range arr {
- e = e * e
- }
- for _, e := range arr {
- fmt.Println(e)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement