Sha256: 7a094d036ba6eb993de6468affc21b8903b0eda7f50ca96e8bf5dc8bcd335bce

Contents?: true

Size: 375 Bytes

Versions: 8

Compression:

Stored size: 375 Bytes

Contents

10 FOR I = 1 TO 3
20 READ P(I)
30 NEXT I
40 FOR I = 1 TO 3
50 FOR J = 1 TO 5
60 READ S(I,J)
70 NEXT J
80 NEXT I
90 FOR J = 1 TO 5
100 LET S = 0
110 FOR I = 1 TO 3
120 LET S = S + P(I) * S(I,J)
130 NEXT I
140 PRINT "TOTAL SALES FOR SALESMAN"J, "$"S
150 NEXT J
200 DATA 1.25, 4.30, 2.50
210 DATA 40, 20, 37, 29, 42
220 DATA 10, 16, 3, 21, 8
230 DATA 35, 47, 29, 16, 33
300 END

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
webruby-0.2.7 modules/emscripten/third_party/ply/example/BASIC/sales.bas
webruby-0.2.5 modules/emscripten/third_party/ply/example/BASIC/sales.bas
webruby-0.2.4 modules/emscripten/third_party/ply/example/BASIC/sales.bas
webruby-0.2.2 modules/emscripten/third_party/ply/example/BASIC/sales.bas
webruby-0.2.1 modules/emscripten/third_party/ply/example/BASIC/sales.bas
webruby-0.1.2 modules/emscripten/third_party/ply/example/BASIC/sales.bas
webruby-0.1.1 modules/emscripten/third_party/ply/example/BASIC/sales.bas
webruby-0.1.0 modules/emscripten/third_party/ply/example/BASIC/sales.bas