Harshad or Niven series: Difference between revisions
m
→{{header|UNIX Shell}}: Formatting
(→{{header|UNIX Shell}}: Add implementation) |
m (→{{header|UNIX Shell}}: Formatting) |
||
Line 4,810:
{{works with|Korn Shell}}
{{works with|Z Shell}}
<syntaxhighlight lang="bash">function main {
▲ local -i i=0
▲ gen_harshad | while read n; do
elif
elif
elif (( n > 1000 )); then
▲ (( i++ ))
▲ done
}
function is_harshad {
}
Line 4,851 ⟶ 4,850:
1002
</pre>
=={{header|VBA}}==
|