chapter5-code-2
Thu Mar 30 2023 09:47:14 GMT+0000 (Coordinated Universal Time)
Saved by
@RareSkills
contract ExampleIfStatement {
function isAMultipleOfTen(uint256 x) public pure returns (bool) {
bool isMul = x % 10 == 0;
if (isMul) {
return true;
}
else {
return false;
}
}
}
content_copyCOPY
Comments