Created
January 29, 2016 18:03
-
-
Save nitsanw/c08ed6e17b667c383b0b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 1. counted = reps is int/short/byte | |
for (int i = 0; i < reps; i++) { | |
// You had plenty money, 1922 | |
} | |
// 2. Not counted | |
for (int i = 0; i < int_reps; i+=2) { | |
// You let other women make a fool of you | |
} | |
// 3. Not counted | |
for (long l = 0; l < int_reps; i++) { | |
// You're sittin' down and wonderin' what it's all about | |
} | |
// 4. Should be counted, but treated as uncounted | |
int i = 0; | |
while (++i < reps) { | |
// You ain't got no money, they will put you out | |
} | |
// 5. Should be counted, but treated as uncounted | |
while (i++ < reps) { | |
// Why don't you do right, like some other men do | |
} | |
// 6. Should be counted, and is! | |
while (i < reps) { | |
// Get out of here and get me some money too | |
i++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment