Anonymous user
Pascal's triangle/Puzzle: Difference between revisions
added version numbers now that Julia has two solutions (one was previously "ate" by the Java entry).
(→{{header|Java}}: fixed an HTML PRE closing tag that "ate" the 1st Julia solution.) |
(added version numbers now that Julia has two solutions (one was previously "ate" by the Java entry).) |
||
Line 1,528:
=={{header|Julia}}==
===version one===
{{works with|Julia|0.6}}
{{trans|Kotlin}}
<lang julia>function pascal(a::Integer, b::Integer, mid::Integer, top::Integer)
yd = round((top - 4 * (a + b)) / 7)
Line 1,549:
<pre>Solution: x = 5, y = 13, z = 8.</pre>
===version two===
{{trans|Kotlin}}
<lang julia>struct Solution
|