Integer sequence: Difference between revisions

Content deleted Content added
JDDev0 (talk | contribs)
m Fix lang example (Begins at 1 now instead of at 0)
Aerobar (talk | contribs)
Line 2,314:
end
</syntaxhighlight>
 
=={{header|RPL}}==
{| class="wikitable"
! RPL code
! Comment
|-
|
64 STWS
#1 '''DO'''
DUP 1 DISP
1 +
'''UNTIL''' #0 == '''END''' CLLCD
≫ ''''COUNT'''' STO
|
'''COUNT''' ''( -- )''
set integer size to 64 bits
Loop
display counter at top of screen
increment
Exit when 2^64-1 has been displayed
|}
 
=={{header|Ruby}}==