Site pages
Current course
Participants
General
Topic 1
Topic 2
Topic 3
Topic 4
Topic 5
Topic 6
Topic 7
Topic 8
Topic 9
Topic 10
Topic 11
Topic 12
Topic 13
Topic 14
Topic 15
Topic 16
Topic 17
Topic 18
Topic 19
Topic 20
Topic 21
Topic 22
Topic 23
Topic 24
Topic 25
Topic 26
Topic 27
Topic 28
Topic 29
Topic 30
Topic 31
Topic 32
Topic 33
Topic 34
Topic 35
The REM statement
This statement is used to insert remarks (REMarks) or identification comments in a program. The form of the REM statement is The comments may be any message not enclosed between quotes. Eg: 29 REM THIS PROGRAM CALCULATES 30 REM THE SUM OF THREE NUMBERS when the comment cannot be contained in one line, it may be continued on the next line with new line number and the word REM. Program One foot = 12.0 inches, one inch = 2.54 centimeters. Develop a program to compute inches and feet of 76.2 centimeters. Print the result as CM = INCHES = FEET = 10 REM PROGRAM TO COMPUTE INCHES AND 20 REM FEET WHEN GIVEN DATUM IS IN CM 30 READ A, B, C 40 DATA 12.0, 2.54, 76.2 50 J=C/B 60 REM VARIABLE J STORES THE NUMBER OF 70 REM INCHES IN C CENTIMETERS 80 F=J/A 90 REM VARIABLE F STORES THE NUMBER OF 100 REM FEET IN J INCHES 110 PRINT “CM =”, C,”INCHES=”,J.”FEET =”, F 120 STOP 130 END |
Last modified: Wednesday, 18 January 2012, 11:12 PM