Created
November 24, 2014 12:22
-
-
Save julialang-jenkins/c6d2e1dcfb9f78246d79 to your computer and use it in GitHub Desktop.
fizzbuzz inf julia
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
1 | |
2 | |
Fizz | |
4 | |
Buzz | |
Fizz | |
7 | |
8 | |
Fizz | |
Buzz | |
11 | |
Fizz | |
13 | |
14 | |
FizzBuzz | |
16 | |
17 | |
Fizz | |
19 | |
Buzz | |
Fizz | |
22 | |
23 | |
Fizz | |
Buzz | |
26 | |
Fizz | |
28 | |
29 | |
FizzBuzz | |
31 | |
32 | |
Fizz | |
34 | |
Buzz | |
Fizz | |
37 | |
38 | |
Fizz | |
Buzz | |
41 | |
Fizz | |
43 | |
44 | |
FizzBuzz | |
46 | |
47 | |
Fizz | |
49 | |
Buzz | |
Fizz | |
52 | |
53 | |
Fizz | |
Buzz | |
56 | |
Fizz | |
58 | |
59 | |
FizzBuzz | |
61 | |
62 | |
Fizz | |
64 | |
Buzz | |
Fizz | |
67 | |
68 | |
Fizz | |
Buzz | |
71 | |
Fizz | |
73 | |
74 | |
FizzBuzz | |
76 | |
77 | |
Fizz | |
79 | |
Buzz | |
Fizz | |
82 | |
83 | |
Fizz | |
Buzz | |
86 | |
Fizz | |
88 | |
89 | |
FizzBuzz | |
91 | |
92 | |
Fizz | |
94 | |
Buzz | |
Fizz | |
97 | |
98 | |
Fizz | |
Buzz |
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
for i = 1:100 | |
if i % 15 == 0 | |
println("FizzBuzz") | |
elseif i % 3 == 0 | |
println("Fizz") | |
elseif i % 5 == 0 | |
println("Buzz") | |
else | |
println(i) | |
end | |
end |
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
Julia Version 0.3.3 | |
Commit b24213b (2014-11-23 20:19 UTC) | |
Platform Info: | |
System: Linux (x86_64-linux-gnu) | |
CPU: Intel Xeon E312xx (Sandy Bridge) | |
WORD_SIZE: 64 | |
Ubuntu 12.04.5 LTS | |
uname: Linux 3.2.0-70-generic #105-Ubuntu SMP Wed Sep 24 19:49:16 UTC 2014 x86_64 x86_64 | |
Memory: 0.9721298217773438 GB (69.4296875 MB free) | |
Uptime: 80624.0 sec | |
Load Avg: 0.0830078125 0.2470703125 0.58935546875 | |
Intel Xeon E312xx (Sandy Bridge): | |
speed user nice sys idle irq | |
#1 2499 MHz 1304658 s 0 s 224440 s 6433176 s 139 s | |
#2 2499 MHz 1138601 s 0 s 221936 s 6633376 s 0 s | |
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge) | |
LAPACK: libopenblas | |
LIBM: libopenlibm | |
LLVM: libLLVM-3.3 | |
Environment: | |
JENKINS_HOME = /var/lib/jenkins | |
LD_LIBRARY_PATH = /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/amd64 | |
HOME = /var/lib/jenkins | |
TERM = screen | |
HUDSON_HOME = /var/lib/jenkins | |
PATH = /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games | |
Package Directory: /var/lib/jenkins/.julia/v0.3 | |
No packages installed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment