BASIC: A Hands-on Method |
From inside the book
Results 1-3 of 25
Page 128
... Write a BASIC program to compute and print out the first twenty numbers in the Fibonacii sequence . 15. Write a program to accept the input of two numbers . If both the numbers are greater than or equal to 10 , print out their sum . If ...
... Write a BASIC program to compute and print out the first twenty numbers in the Fibonacii sequence . 15. Write a program to accept the input of two numbers . If both the numbers are greater than or equal to 10 , print out their sum . If ...
Page 163
... PRINT C 150 LET A 160 NEXT I 170 END = INT ( B ) 12. N ! is read " N factorial " and means the product of all the ... compute and print out N ! If you try out this program on the computer , you may be suprised to find that values of N ...
... PRINT C 150 LET A 160 NEXT I 170 END = INT ( B ) 12. N ! is read " N factorial " and means the product of all the ... compute and print out N ! If you try out this program on the computer , you may be suprised to find that values of N ...
Page 202
... compute and print out the sum of the elements in each row and the product of the elements in each column . 18. Write a BASIC program that will read two arrays from DATA statements . Both the arrays are two by three . Then compute a ...
... compute and print out the sum of the elements in each row and the product of the elements in each column . 18. Write a BASIC program that will read two arrays from DATA statements . Both the arrays are two by three . Then compute a ...
Contents
INTRODUCTION TO COMPUTERS AND BASIC | 1 |
COMPUTER ARITHMETIC AND PROGRAM MANAGEMENT | 3 |
INTRODUCTION TO BASIC | 9 |
Copyright | |
14 other sections not shown
Common terms and phrases
100 PRINT INPUT 100 REM CHAP 110 MAT READ account number arithmetic operations ASCII assertion BASIC program BASIC statement BREAK key chapter Clear collections of numbers compute and print Computer prints Computer types conditional transfer statement DATA statements DIM statement disk storage Display the program element END Execute END statement enter the following example Execute the program following output following program GOSUB GOTO grades INFUT input loop INPUT prompt INPUT statement instructions integer Jump the computer LET F look MAT INPUT MAT PRINT matrix output when executed position number press the RETURN PRINT statement problem produce the following program and record program is executed program to call random numbers record the output record what happened RETURN key RETURN statement statement in line string variables subroutine subscripts Suppose system commands think will happen tyre whole numbers Write a BASIC Write a program