Heronian triangles: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: removed code to it's proper place alphabetically. |
m →{{header|REXX}}: added a programming note. |
||
Line 423:
=={{header|REXX}}==
Programming note: the '''hGCD''' subroutine is a specialized version of a GCD routine in that it doesn't check for non-positive integers.
Also, a fair amount of code was added to optimize the speed (at the expense of program simplicity).
<lang rexx>/*REXX pgm generates primitive Heronian triangles by side length & area.*/
parse arg sides first area . /*get optional SIDES from CL*/
|