Sub programs allow you to break up one long program; into being a series of much smaller tasks; usually, controlled by a main program. Example...
====
As you can see from the above 2 examples; the 2nd example, although longer, creates code that is much clearer and simpler to read. Even non-programmers should be able to figure out what the 'Main Program' section is doing.
NOTE: There are certain rules for the use of sub-routines. Such as the sub routine should confine itself to doing just 'one' task at a time. So, SUB clearScreen...does just 'one' job, alone...which is to (CL)ear the output (S)creen. It does NOT clear the screen AND get the user to input a number. This makes it quicker and easier to debug programs; as you know exactly where the code is going wrong; so, for example, if the screen didn't clear, properly...then, look at the Sub-routine called: SUB clearScreen. If the title didn't appear; then, look at the Sub-routine called: SUB printTitle. /-Etc.
type: PRINT "I like chocalate!"
Difference between QBASIC and GWBASIC?
The advantage of qbasic is that it is easy to learn, to start out,then one can move on to more complex, or advanced languages.
In order to Download Qbasic you may do one, both or none of these two things: 1.) Go to "http://www.softpedia.com/get/Programming/Coding-languages-Compilers/Qbasic.shtml" and click download or 2.) use "Google.com" with the keywords Qbasic free download to find another website with a free qbasic downlaod.
QBASIC free downlaods are from cnet.com or softepedia.com.Hope this is helpful to you..... if u want anything else just mail it to rockmayur@live.com..
type: PRINT "I like chocalate!"
Qbasic and Quickbasic are not the same! Qbasic was a free interpreter that Microsoft included with MS-DOS. Although Quickbasic uses similar syntax as quickbasic it allows programs to be compiled.
the extensions of qbasic are that, there are only 80 pixels to write in the qbasic
qbasic is important because its technology
Many DOS applications simply will not run under Windows Vista, and none under the 64-bit version. Making the NTVDM support DOS programs in Vista was an extremely low priority, since very few people actually run DOS programs anymore. You can use QBasic and other DOS programs on Vista (even the 64-bit version) by using an emulator known as DOSBox.
Microsoft Word is a word processing software used for creating, editing, and formatting text documents, while QBasic is a programming language primarily used for writing and running simple programs. MS Word is designed for creating documents such as letters, reports, and resumes, while QBasic is used for developing small applications and games. Additionally, MS Word has a graphical user interface for ease of use, while QBasic requires writing code for programming tasks.
There is no shortcut key of input in qbasic
Difference between QBASIC and GWBASIC?
The different types of operators in QBASIC are:Arithmetic OperatorsRelational OperatorsLogical Operators
microsoft
The advantage of qbasic is that it is easy to learn, to start out,then one can move on to more complex, or advanced languages.
Statement numbers were a feature of BASIC, and while QBASIC supports them, they are by no means necessary.