chapter7-code-7
Thu Mar 30 2023 09:53:16 GMT+0000 (Coordinated Universal Time)
Saved by
@RareSkills
contract ExampleContract {
function productOfarray(uint256[] calldata myArray) public pure returns (uint256) {
uint256 product = 1;
for (uint256 i = 0; i < myArray.length; i++) {
product *= myArray[i];
}
return product;
}
}
content_copyCOPY
Comments