pragma solidity ^0.4.26; contract test { uint total; uint counter; function calcAverage( uint _newValue) public { total += _newValue; counter++; } function get() public view returns(uint) { return total / counter; } }
0.4.26