Anonymous user
Greatest common divisor: Difference between revisions
m
→{{header|AWK}}: portability
m (→{{header|Simula}}: Fixed {{out}}) |
m (→{{header|AWK}}: portability) |
||
Line 299:
=={{header|AWK}}==
The following scriptlet defines the gcd() function, then reads pairs of numbers from stdin, and reports their gcd on stdout.
<lang awk>$ awk '
12 16
4
Line 306:
45 67
1</lang>
=={{header|Axe}}==
|