Last active
February 21, 2022 12:29
-
-
Save maymax777/e55b18281d0139bddce2107e0f7a721f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.19; | |
contract Century { | |
function get(int year) public pure returns (int) { | |
return (year - 1) / 100 + 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment