<?php. function arraySum( array $nums ) {. $sum = 0; foreach ( $nums as $n ) {. $sum += $n ;. } return $sum ;. } assert(arraySum([1, 2, ...
確定! 回上一頁