Last active
September 6, 2020 20:39
-
-
Save vzayaz/d3e99d1e72bdd2d135026e18584f32e4 to your computer and use it in GitHub Desktop.
Count naively
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
var res: Long = 0L | |
var i: Long = 0L | |
while (i < 1000L * 1000 * 1000) { | |
if (i % 2 == 0) res += 1 | |
i += 1L | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment