The QBASIC section has been archived, and is no longer updated.


Gets data from the user. It can be used in two forms:

 INPUT "How many", variable
 INPUT "How many"; variable

The only diffence between the two is the punctuation. The semicolon adds a question mark, the comma does not. Therefore the first one asks

 How many_

and the second one asks

 How many? _

The variable can be any variable name you want. You could call it num, or name$, or hjdfksalhjgkfldah. Just remember that if you want to calculate something with it, make it numeric, and if you want to type something in, make it a string variable.