Heronian triangles: Difference between revisions
m
→{{header|Logtalk}}: Corrected a change that should have been made earlier but wasn't.
Ttmrichter (talk | contribs) |
Ttmrichter (talk | contribs) m (→{{header|Logtalk}}: Corrected a change that should have been made earlier but wasn't.) |
||
Line 3,047:
print('There are ~w primitive Heronian triangles with sides under 200.~n'+[L]),
sort(
take(10, AreaSorted, Area10),
print(@'The first ten found, ordered by area, are:\n'),
display_each_element(Area10),
sort(
take(10, PerimeterSorted, Perimeter10),
print(@'The first ten found, ordered by perimeter, are:\n'),
|