diff options
author | sagudev <16504129+sagudev@users.noreply.github.com> | 2023-02-19 13:38:01 +0100 |
---|---|---|
committer | sagudev <16504129+sagudev@users.noreply.github.com> | 2023-02-19 13:38:01 +0100 |
commit | 2acdeabaf59dc233e4a9e96c36c7bf0df574f0c6 (patch) | |
tree | 47b5a96cbdbdeada8f143d299a91c16a0ea7822f /components/script/dom/bindings/codegen/ply/example/BASIC/sales.bas | |
parent | 4d393612b49343b141acdbe5a0b5dd7acc43eb65 (diff) | |
download | servo-2acdeabaf59dc233e4a9e96c36c7bf0df574f0c6.tar.gz servo-2acdeabaf59dc233e4a9e96c36c7bf0df574f0c6.zip |
Update ply
Diffstat (limited to 'components/script/dom/bindings/codegen/ply/example/BASIC/sales.bas')
-rw-r--r-- | components/script/dom/bindings/codegen/ply/example/BASIC/sales.bas | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/ply/example/BASIC/sales.bas b/components/script/dom/bindings/codegen/ply/example/BASIC/sales.bas new file mode 100644 index 00000000000..a39aefb762c --- /dev/null +++ b/components/script/dom/bindings/codegen/ply/example/BASIC/sales.bas @@ -0,0 +1,20 @@ +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 |