Largest five adjacent number: Difference between revisions

(Realize in F#)
Line 230:
digit = ""
max = 0
maxOld = 0
limit = 1000
 
Line 242 ⟶ 241:
res = substr(digit,n,5)
resNum = number(res)
if resNum > maxoldmax
max = resNum
maxOld = max
ok
next
2,468

edits