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/sears.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/sears.bas')
-rw-r--r-- | components/script/dom/bindings/codegen/ply/example/BASIC/sears.bas | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/ply/example/BASIC/sears.bas b/components/script/dom/bindings/codegen/ply/example/BASIC/sears.bas new file mode 100644 index 00000000000..5ced3974e24 --- /dev/null +++ b/components/script/dom/bindings/codegen/ply/example/BASIC/sears.bas @@ -0,0 +1,18 @@ +1 REM :: THIS PROGRAM COMPUTES HOW MANY TIMES YOU HAVE TO FOLD +2 REM :: A PIECE OF PAPER SO THAT IT IS TALLER THAN THE +3 REM :: SEARS TOWER. +4 REM :: S = HEIGHT OF TOWER (METERS) +5 REM :: T = THICKNESS OF PAPER (MILLIMETERS) +10 LET S = 442 +20 LET T = 0.1 +30 REM CONVERT T TO METERS +40 LET T = T * .001 +50 LET F = 1 +60 LET H = T +100 IF H > S THEN 200 +120 LET H = 2 * H +125 LET F = F + 1 +130 GOTO 100 +200 PRINT "NUMBER OF FOLDS ="F +220 PRINT "FINAL HEIGHT ="H +999 END |