Hello everyone. is there someone to teach me how to calculate avg value of array in solidity without for loop?
Feb 9, 2022, 8:08 PM
you can keep the sum of the array in some variable, and update it every time you change array value
Feb 9, 2022, 8:26 PM
um...it could be a solution. thanks
Feb 9, 2022, 8:28 PM