Download DUINOMITE USERS MANUAL
Transcript
Example 1: To find the square of a number: 10 INPUT X 20 PRINT X "SQUARED IS" X^2 30 END RUN ? The operator types a number (5) in response to the question mark. 5 SQUARED IS 25 Example 2: To find the area of a circle when the radius is known: 10 PI=3.14 20 INPUT "WHAT IS THE RADIUS"; R 30 A=PI*R^2 40 PRINT "THE AREA OF THE CIRCLE IS"; A 50 PRINT 60 GOTO 20 RUN WHAT IS THE RADIUS? 7.4 THE AREA OF THE CIRCLE IS 171.9464