Munchausen numbers: Difference between revisions

Content deleted Content added
m →‎version 2: changed highlighting, used a template for the output section.
m →‎version 3: added highlighting, also used a template for the output section.
Line 1,897:
 
===version 3===
It is about   '''3'''   times faster than REXX version 1.
<lang rexx>/*REXX program finds and displays Münchhausen numbers from one to a specified number (Z)*/
@.=0; do i=1 for 9; @.i=i**i; end /*precompute powers for non-zero digits*/
Line 1,913:
end /*while*/
return $==ox /*it is or it ain't*/</lang>
'''{{out|output''' |text=&nbsp; is the same as the 2<sup>nd</sup> REXX version. <br><br>
 
=={{header|Ring}}==