Created
January 7, 2014 03:59
-
-
Save jaxbot/8294448 to your computer and use it in GitHub Desktop.
FizzBuzz in VimL
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
let c = 1 | |
while c <= 100 | |
if eval("c % 15") == 0 | |
echo "FizzBuzz" | |
elseif eval("c % 3") == 0 | |
echo "Fizz" | |
elseif eval("c % 5") == 0 | |
echo "Buzz" | |
else | |
echo c | |
endif | |
let c += 1 | |
endwhile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment