Greatest common divisor: Difference between revisions
→{{header|J}}
Line 679:
<lang J> 12 +. 30
6</lang>
Note that <code>+.</code> is a single, two character token. GCD is a primitive in J (and anyone that has studied the right kind of mathematics should instantly recognize why the same operation is used for both GCD and OR).
=={{header|Java}}==
|