Created
January 30, 2019 02:18
-
-
Save aubelsb2/6285003570274f10121fc84ae0c0a2f8 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
package main | |
import "log" | |
func main() { | |
v := 0 | |
for i := 0; i < 16; i++ { | |
v <<= 1 | |
v |= 1 | |
log.Printf("%v", v) | |
v <<= 1 | |
log.Printf("%v", v) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment