-
-
Save dora-gt/1286488 to your computer and use it in GitHub Desktop.
Google が Dart 公開したから早速 FizzBuzz
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
main () { | |
var tmp = null; | |
for (var i=0;++i<101;) { | |
print ((tmp = (i%3?'':'Fizz')+(i%5?'':'Buzz')) == '' ? i : tmp); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"String is not assignable to bool" っていうアラートが何か気持ち悪くて…。