DataMuseum.dk

Presents historical artifacts from the history of:

RegneCentralen RC759 "Piccoline"

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RegneCentralen RC759 "Piccoline"

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦ca85f59ab⟧ TextFile

    Length: 512 (0x200)
    Types: TextFile
    Names: »SIDE191«

Derivation

└─⟦eca9022c5⟧ Bits:30002661 Datalære sådan - løsningsdiskette
    └─ ⟦this⟧ »SIDE191« 

TextFile

0010 DIM a(12) // alle "rum" får værdien 0 ved dimensioneringen
0020 INPUT "hvor mange kast ønskes: ": kast
0030 FOR j:= 1 TO kast DO
0040   // de to terninger skal kastes uafhængigt«nul»
0050   // af hinanden, - derfor de to randomize'r.«nul»
0060   RANDOMIZE 
0070   x1:= RND(1,6)
0080   RANDOMIZE 
0090   x2:= RND(1,6)
0100   sum:= x1+x2
0110   a(sum):= a(sum)+1
0120 NEXT j
0130 FOR i:= 2 TO 12 DO
0140   PRINT USING "øjensum ## forekom ####### gange": i,a(i)
0150 NEXT i
0160 END 
«eof»