Skip to content

Instantly share code, notes, and snippets.

@zabirauf
Created April 16, 2018 01:32
Show Gist options
  • Save zabirauf/bef09015496b5e3126c316fdb18ccdcd to your computer and use it in GitHub Desktop.
Save zabirauf/bef09015496b5e3126c316fdb18ccdcd to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.21;
import './GlobalCalculator.sol';
contract GlobalCalculator_V2 is GlobalCalculator_V1 {
function getMul() public view returns (uint mul) {
mul = 1;
for (uint i = 0;i < _nums.length; i++) {
mul *= _nums[i];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment