Arithmetic/Integer: Difference between revisions
Content added Content deleted
(Add min) |
m (→{{header|Groovy}}: cosmetic changes) |
||
Line 1,851: | Line 1,851: | ||
=={{header|Groovy}}== |
=={{header|Groovy}}== |
||
'''Solution:''' |
|||
<lang groovy>def arithmetic = { a, b -> |
<lang groovy>def arithmetic = { a, b -> |
||
println """ |
println """ |
||
Line 1,866: | Line 1,867: | ||
}</lang> |
}</lang> |
||
'''Test:''' |
|||
Program: |
|||
<lang groovy>arithmetic(5,3)</lang> |
<lang groovy>arithmetic(5,3)</lang> |
||