8/5/2023 0 Comments Gw basic sample programsEND statement tells GWBASIC that this is the end of our program.ģ- Function (tab, str, string$, cos, sin, etc) Now, start GWBASIC program again. Simple PRINT command displays an empty line. Instead of PRINT you can use ? (Question mark). Literal strings are always given in quotes. That something in this case is given as a string. PRINT is a statement to display something on the screen. That makes it easier for you to understand the logic of a program, say if you were to see it after a months time! Instead of REM you can use ' (apostrophe) to give comments. It's a good practice to include comments in our program at suitable places. REM is a statement that tells GWBASIC that what comes next is only a comment and not a program statement. ![]() Again normally a difference of 10 is used.Īfter the line number you keyed in the actual program statement. The difference between each line number can be 1 or more. They are must for each statement of the program. ![]() ![]() Here 10, 20, 30 etc are called line numbers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |