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 i := 0; i < len(arr); i++ {
- arr[i] = arr[i] * arr[i]
- }
- for _, e := range arr {
- fmt.Println(e)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement