Jump to content

Greatest common divisor: Difference between revisions

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}}==
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.