Base-16 representation: Difference between revisions

(Created page with "{{Draft task}} ;Task:Numbers in base-16 representation that cannot be written with decimal digits, where '''n < 501''' <br><br> =={{header|Ring}}== <lang ring> load "stdlib...")
 
Line 11:
decList = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
baseList = ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"]
baseAbcList = ["A","B","C","D","E","F"]
row = 1
limit = 200
Line 21 ⟶ 20:
lenHex = len(hex)
for m = 1 to lenHex
ind = find(baseAbcListbaseList,hex[m])
if ind < 111
num = num + 1
ok
2,468

edits