Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Tau-function/FreeBASIC/tau-function.basic
Normal file
13
Task/Tau-function/FreeBASIC/tau-function.basic
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
function numdiv( n as uinteger ) as uinteger
|
||||
dim as uinteger c = 1
|
||||
for i as uinteger = 1 to (n+1)\2
|
||||
if n mod i = 0 then c += 1
|
||||
next i
|
||||
if n=1 then c-=1
|
||||
return c
|
||||
end function
|
||||
|
||||
for i as uinteger = 1 to 100
|
||||
print numdiv(i),
|
||||
if i mod 10 = 0 then print
|
||||
next i
|
||||
Loading…
Add table
Add a link
Reference in a new issue