June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
7
Task/Josephus-problem/BASIC/josephus-problem-1.basic
Normal file
7
Task/Josephus-problem/BASIC/josephus-problem-1.basic
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
10 N=41
|
||||
20 K=3
|
||||
30 M=0
|
||||
40 FOR I=M+1 TO N
|
||||
50 M=INT(I*((M+K)/I-INT((M+K)/I))+0.5)
|
||||
60 NEXT I
|
||||
70 PRINT "Survivor is number";M
|
||||
Loading…
Add table
Add a link
Reference in a new issue