Created
November 24, 2014 06:09
-
-
Save julialang-jenkins/99017cb01d3195335677 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 (67.91015625 MB free) | |
Uptime: 58242.0 sec | |
Load Avg: 1.1474609375 0.89111328125 0.5087890625 | |
Intel Xeon E312xx (Sandy Bridge): | |
speed user nice sys idle irq | |
#1 2499 MHz 546150 s 0 s 78904 s 5143921 s 123 s | |
#2 2499 MHz 460253 s 0 s 69008 s 5255048 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