Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Tau-function/QBasic/tau-function.basic
Normal file
15
Task/Tau-function/QBasic/tau-function.basic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
PRINT "The tau functions for the first 100 positive integers are:": PRINT
|
||||
|
||||
FOR N = 1 TO 100
|
||||
IF N < 3 THEN
|
||||
T = N
|
||||
ELSE
|
||||
T = 2
|
||||
FOR A = 2 TO (N + 1) \ 2
|
||||
IF N MOD A = 0 THEN T = T + 1
|
||||
NEXT A
|
||||
END IF
|
||||
PRINT USING "###"; T;
|
||||
IF N MOD 10 = 0 THEN PRINT
|
||||
NEXT N
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue