Basic BASIC: An Introduction to Computer Programming in BASIC Language |
From inside the book
Results 1-3 of 70
Page 9
... LINE 20 Notice the use of Q for quotient , P for product , etc. This is a technique . that is useful not only on the ... 30 READ N , P 40 LET T = T + N * P 45 PRINT N , P , NP , T 50 GO TO 30 70 END RUN ITEMS UNIT PRICE COST SUBTOTAL 2 ...
... LINE 20 Notice the use of Q for quotient , P for product , etc. This is a technique . that is useful not only on the ... 30 READ N , P 40 LET T = T + N * P 45 PRINT N , P , NP , T 50 GO TO 30 70 END RUN ITEMS UNIT PRICE COST SUBTOTAL 2 ...
Page 223
... 30 READ A , B LET C = C + 1 PRINT AJ B ; A + B ; A✶ B ; C ; " PAIRS SO FAR " GO TO 10 DATA 10 , 20 , 11,9 40 50 60 70 80 DATA 1,2 , -45 , 18 90 END RUN A B SUM PROD 10 20 30 ... line 30 . 60 GO TO 30 RUN A B SUM PROD 10 Error Diagnosis 223.
... 30 READ A , B LET C = C + 1 PRINT AJ B ; A + B ; A✶ B ; C ; " PAIRS SO FAR " GO TO 10 DATA 10 , 20 , 11,9 40 50 60 70 80 DATA 1,2 , -45 , 18 90 END RUN A B SUM PROD 10 20 30 ... line 30 . 60 GO TO 30 RUN A B SUM PROD 10 Error Diagnosis 223.
Page 5
... 30 LET SCR , 1 ) = R 40 FOR C - 2 TO 10 48 REM LINE 50 SETS THE LAST COLUMNS AT ZERO 50 LET SCR.C3.3 190 LET FIR , C ] F [ R , C ] + E [ R , C ) 60 NEXT C 200 NEXT C 70 NEXT R 210 NEXT R 78 220 PRINT " SUMS ENTERED IN SECOND ARRAY " 80 ...
... 30 LET SCR , 1 ) = R 40 FOR C - 2 TO 10 48 REM LINE 50 SETS THE LAST COLUMNS AT ZERO 50 LET SCR.C3.3 190 LET FIR , C ] F [ R , C ] + E [ R , C ) 60 NEXT C 200 NEXT C 70 NEXT R 210 NEXT R 78 220 PRINT " SUMS ENTERED IN SECOND ARRAY " 80 ...
Contents
Chapter 1Introduction to BASIC | 1 |
Chapter 2Writing a Program | 13 |
Chapter 3Loops and Lists | 24 |
Copyright | |
13 other sections not shown
Other editions - View all
Common terms and phrases
30 PRINT 30 READ 70 END RUN 999 END RUN ANGLES array ASCII ASCII file BASIC binary file Caravan Chap characters coefficients comma complex numbers COMPOUNDED MONTHLY COMPOUNDED QUARTERLY computer print count the number DATA IN LINE DATA line dice digits dimensions dummy data END RUN NO.4 equations FILES TEST FLIPS flowchart FØR X=1 function GO SUB GO TO 20 GØSUB GOTO greatest common factor INPUT integers INTEGRAL ZERO Law of Cosines Law of Sines LET SCR LET T=0 LINE 30 MAT PRINT matrix multiply NON-REAL ZEROS ORDER CHEMISTRY ordered pairs plot polynomial print the result printed results probability PROBLEMS FOR SEC program to print quotient radians random numbers READ statement REAL ZEROS REM LINE remainder row number RUN NO.2 semicolon space STEP string subroutine subscripts subtract SYNTHETIC DIVISION terminal triangle variable Write a program