pragma solidity ^0.4.21; contract loop { function whileStatement1(uint _a, uint _b) public pure returns(uint) { uint result = 0; while (_b != 0) { result += _a; _b--; } return result; } }
0.4.21