Perfect numbers: Difference between revisions

m
Line 1,017:
 
==={{header|Craft Basic}}===
<syntaxhighlight lang="basic">printfor "calculating..."n = 1 to 10000
 
for n = 1 to 10000
 
let s = 0
Line 1,035 ⟶ 1,033:
if s = n then
 
print n, " is perfect.",
 
endif
Line 1,042 ⟶ 1,040:
 
next n</syntaxhighlight>
{{out| Output}}<pre>6 28 496 8128 </pre>
 
==={{header|IS-BASIC}}===
305

edits