loading...

re: Daily Coding Puzzles - Nov 4th - Nov 9th VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Tuesday Product of Array Items (7 KYU): Calculate the product of all elements in an array. CodeWars
 

Go

func Product(nums []int)(x int) {
    x = 1

    for _, num := range nums {
        x *= num
    }
    return
}

Code of Conduct Report abuse