Triangle Inequality by clock

include../local/euphoria/include/get.e
object a,b,c
for n=1to 500do
a=get(0)b=get(0)c=get(0)a=(a+b>c)*(b+c>a)*(a+c>b)puts(1,a[2]+48&10)end for

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page