<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4780134334593779356</id><updated>2024-08-28T04:00:31.034-07:00</updated><title type='text'>History Of Computer</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>220</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-9001957912250256334</id><published>2013-10-17T20:07:00.001-07:00</published><updated>2013-10-17T20:07:15.414-07:00</updated><title type='text'>MID$ function</title><summary type="text">



The MID$ function returns a string of m characters from x$ string, beginning with the n th character.

Syntax

LN MID$ (x$,n,m)

Where,

LN : Line Number

x$ &amp;nbsp;: string from which the m characters are to be extracted starting from nth character.

n &amp;nbsp; : the position from which character are to be extracted.

m &amp;nbsp;: number of character.




n must be within the range 1 to 255.

m </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/9001957912250256334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/10/mid-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/9001957912250256334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/9001957912250256334'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/10/mid-function.html' title='MID$ function'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-816698857493821505</id><published>2013-10-12T19:04:00.000-07:00</published><updated>2013-10-12T19:04:43.718-07:00</updated><title type='text'>Right$ function</title><summary type="text">

The RIGHT$ function returns the rightmost n characters of string x$.

Syntax

LN RIGHT (x$, n)

Where ,

LN &amp;nbsp; &amp;nbsp;: &amp;nbsp; Line Number

x$ &amp;nbsp; &amp;nbsp; : &amp;nbsp; string from which the n right most characters are to be extracted.

n &amp;nbsp; &amp;nbsp; &amp;nbsp; : &amp;nbsp; number of characters



The value of n must be within the range of 0 to 255
if n = 0, the null string (length zero) is returned.</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/816698857493821505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/10/right-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/816698857493821505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/816698857493821505'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/10/right-function.html' title='Right$ function'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-175320732327047715</id><published>2013-09-30T19:25:00.003-07:00</published><updated>2013-09-30T19:25:38.269-07:00</updated><title type='text'>String Functions(String handling commands</title><summary type="text">

String functions or string handling commands allows us to examine and modify tring and convert tring to numeric values.


The string function with a dollar sign($) at the end returns a string whereas a string function without a dollar sign returns a numeric value.
String operation allow combination and comparison of strings.BASIC has the following string manipulation function.


LEFT$ function
</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/175320732327047715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/09/string-functionsstring-handling-commands.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/175320732327047715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/175320732327047715'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/09/string-functionsstring-handling-commands.html' title='String Functions(String handling commands'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-2040061939326066083</id><published>2013-08-28T19:38:00.000-07:00</published><updated>2013-08-28T19:38:08.020-07:00</updated><title type='text'>Functions and Subroutines</title><summary type="text">

A function is an operation which produces a single result on some data and can be used as part of an expression. BASIC provides &amp;nbsp;a large number of utility functions which are part of BASIC language and are known as Built-in function (or Library functions). The data upon which the function acts to produce the desired result is known as argument of the function. The argument can be a </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/2040061939326066083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/08/functions-and-subroutines.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/2040061939326066083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/2040061939326066083'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/08/functions-and-subroutines.html' title='Functions and Subroutines'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-7966051865913633680</id><published>2013-08-09T02:23:00.003-07:00</published><updated>2013-08-09T02:23:51.364-07:00</updated><title type='text'>WHILE-WEND statement</title><summary type="text">

The WHILE-WEND statement executes a series of statements in a loop as long as given condition is true.

Syntax

LN WHILE expression

.

.

.

[loop statements]

.

.

.

WEND

Where ,

LN &amp;nbsp; &amp;nbsp; &amp;nbsp; : Line Number

expression &amp;nbsp; &amp;nbsp; : valid BASIC expression

loop statement &amp;nbsp;: Series of statement which are to be repeated

Points to Remember


If expression is true, loop </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/7966051865913633680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/08/while-wend-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/7966051865913633680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/7966051865913633680'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/08/while-wend-statement.html' title='WHILE-WEND statement'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-7438030417689038523</id><published>2013-08-05T19:36:00.000-07:00</published><updated>2013-08-08T04:23:13.303-07:00</updated><title type='text'>IF...THEN..ELSE statement</title><summary type="text">

The IF..THEN..ELSE statement allows us to make the decision regarding program flow based on the result returned by an expression.

Syntax

LN IF expression (,) THEN statement(,) ELSE statement


if the result of expression is true, the THEN statement is executed.
if the result of expression is false, the THEN line number is ignored and the ELSE line number is executed.
THEN and ELSE may be </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/7438030417689038523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/08/ifthenelse-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/7438030417689038523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/7438030417689038523'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/08/ifthenelse-statement.html' title='IF...THEN..ELSE statement'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-879171878428613539</id><published>2013-08-01T02:06:00.000-07:00</published><updated>2013-08-02T02:00:26.553-07:00</updated><title type='text'>IF...THEN statement</title><summary type="text">

The IF... THEN statement allows us to make a decision regarding program flow based on the result returned by an expression.

Syntax

LN IF expression [,] THEN statement[,]

Points to remember


If the result of expression is true (or non zero), THEN then statement is executed.
If the result of the expression is false (or zero), the THEN statement is ignored and execution continues with the next</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/879171878428613539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/08/ifthen-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/879171878428613539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/879171878428613539'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/08/ifthen-statement.html' title='IF...THEN statement'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-3782607255250776531</id><published>2013-07-27T02:45:00.000-07:00</published><updated>2013-07-27T23:50:56.793-07:00</updated><title type='text'>FOR and NEXT statements</title><summary type="text">

The FOR and NEXT statement is used to execute a series of instructions a specified number of times in a loop.

Syntax

LN FOR variable = X To Y [STEP &amp;nbsp;Z]

.

.

.

NEXT [variable][,variable...]

Where,

LN &amp;nbsp; &amp;nbsp; &amp;nbsp;: Line Number

variable &amp;nbsp;: variable used as a counter

X, Y and Z &amp;nbsp;:numeric expressions

STEP &amp;nbsp;Z &amp;nbsp;: &amp;nbsp;specifies the counter increment for each</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/3782607255250776531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/07/for-and-next-statements.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/3782607255250776531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/3782607255250776531'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/07/for-and-next-statements.html' title='FOR and NEXT statements'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-5088512100289210274</id><published>2013-07-18T03:08:00.001-07:00</published><updated>2013-07-18T03:08:59.811-07:00</updated><title type='text'>ON...GOTO Statement</title><summary type="text">
The ON...GOTO Statement is used to branch to one of several specified line numbers depending on the value return, when an expression is evaluated.
Syntax
LN ON expression GOTO line numbers
Where,
LN &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;nbsp;Line Number
Expression &amp;nbsp;: &amp;nbsp;Valid numeric expression
Line number &amp;nbsp;: &amp;nbsp;Line numbers to where jump has to take place.


In the ON...GOTO statement the </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/5088512100289210274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/07/ongoto-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/5088512100289210274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/5088512100289210274'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/07/ongoto-statement.html' title='ON...GOTO Statement'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-1631557277651665133</id><published>2013-07-13T05:18:00.001-07:00</published><updated>2013-07-13T05:18:59.723-07:00</updated><title type='text'>Branching and Looping</title><summary type="text">

Introduction
In a computer program the statement are ordinarily executed line by line. In BASIC language the execution is done in the ascending order of line number, unless instructed otherwise by control statement. The control sequence of statement executed can be altered by means of control statement.
A transfer of control or jump from one part of the program to another is referred as </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/1631557277651665133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/07/branching-and-looping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1631557277651665133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1631557277651665133'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/07/branching-and-looping.html' title='Branching and Looping'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-9179883450139774821</id><published>2013-07-07T21:33:00.001-07:00</published><updated>2013-07-07T21:33:34.984-07:00</updated><title type='text'>SWAP Statement</title><summary type="text">

The SWAP statement is used to exchange the values of two variables.

Syntax

LN SWAP variable1, varaible2

Where,

LN &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;nbsp;Line Number&amp;nbsp;

variable1 &amp;nbsp;: &amp;nbsp;the first variable

variable2 &amp;nbsp;: &amp;nbsp;the second variable


Any type of variable may be swapped (numeric or string).
To use SWAP, the two variables must be of the same type.


Use of SWAP statement in </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/9179883450139774821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/07/swap-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/9179883450139774821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/9179883450139774821'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/07/swap-statement.html' title='SWAP Statement'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-1487135175359586793</id><published>2013-07-06T04:08:00.000-07:00</published><updated>2013-07-06T04:08:05.596-07:00</updated><title type='text'>RESTORE Statement</title><summary type="text">

The restore statement allows DATA statements to be reread from a specified line.

Syntax

LN RESTORE [Line Number]

Where,

LN &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Line Number

Line number &amp;nbsp; &amp;nbsp;: &amp;nbsp; &amp;nbsp; &amp;nbsp; The particular line number from which data are to be read again.



if line number is specified the next READ statement reads the first data in the </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/1487135175359586793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/07/restore-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1487135175359586793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1487135175359586793'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/07/restore-statement.html' title='RESTORE Statement'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-3665470611538317297</id><published>2013-06-30T02:55:00.001-07:00</published><updated>2013-06-30T02:55:34.753-07:00</updated><title type='text'>READ and DATA statement</title><summary type="text">

The READ statement is used to read value from a DATA statement and assign them to variables.

The DATA statement is used to store the numeric, integer or string constants that are accessed by the READ&amp;nbsp;statement.

Syntax

LN READ &amp;nbsp;list of variable

LN DATA constants

Where,

LN &amp;nbsp;: &amp;nbsp;Line Number

list of variables : numeric or string variables

Constants &amp;nbsp;: numeric or </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/3665470611538317297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/06/read-and-data-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/3665470611538317297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/3665470611538317297'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/06/read-and-data-statement.html' title='READ and DATA statement'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-2315752796707927207</id><published>2013-06-19T04:10:00.000-07:00</published><updated>2013-06-19T04:10:47.085-07:00</updated><title type='text'>INPUT Statement</title><summary type="text">
The INPUT Statement is used to prepare the program for input from the keyboard during program execution.
Syntax
LN INPUT [Prompt string ;] List of Variables
Where,
LN &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;nbsp; &amp;nbsp; &amp;nbsp; Line Number
Prompt String &amp;nbsp;: &amp;nbsp; &amp;nbsp;Message displayed for data to be supplied during program execution.
List of Variable &amp;nbsp;: Contains the variable {s} that store data


The </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/2315752796707927207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/06/input-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/2315752796707927207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/2315752796707927207'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/06/input-statement.html' title='INPUT Statement'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-6197427220388807089</id><published>2013-06-05T02:00:00.002-07:00</published><updated>2013-06-05T02:00:21.721-07:00</updated><title type='text'>LET statement</title><summary type="text">
The LET statement assigns the value of an expression to a variable.
Syntax
LN [LET] Variable = expression
Where,
LN &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;nbsp; &amp;nbsp; Line Number
[LET] &amp;nbsp;: &amp;nbsp; &amp;nbsp; LET is optional (i.e. the equal sign(=) is sufficient to assign an expression to a variable.
Variable &amp;nbsp;: &amp;nbsp;Stores the values of expression on the right hand side.
Expression &amp;nbsp;valid BASIC </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/6197427220388807089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/06/let-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/6197427220388807089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/6197427220388807089'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/06/let-statement.html' title='LET statement'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-1484300733376114219</id><published>2013-06-02T07:22:00.000-07:00</published><updated>2013-06-02T07:22:28.612-07:00</updated><title type='text'>TAB Function</title><summary type="text">

The TAB function spaces to position on the screen.

Syntax

LN TAB (n)

Where,

LN &amp;nbsp; &amp;nbsp; : &amp;nbsp;Line Number

n &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &amp;nbsp;number of spaces


Space 1 is the left most position.
n must be within the range of 1 to 255.
if the current print position is already beyond space n, TAB goes to that position on the next line.
TAB should be used with PRINT statement.



</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/1484300733376114219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/06/tab-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1484300733376114219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1484300733376114219'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/06/tab-function.html' title='TAB Function'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-1077520326406938399</id><published>2013-05-29T22:49:00.000-07:00</published><updated>2013-05-29T22:49:02.814-07:00</updated><title type='text'>Reading and Printing</title><summary type="text">

Introduction
In a computer program it is often necessary to supply data to the program and print the result. This is done by input and output statements. In a BASIC program data can be supplied by INPUT, READ,DATA, RESTORE statements and printed with PRINT and LNPRINT statement.
PRINT Statement
The PRINT statement is used to output a display on the screen.
Syntax
LN PRINT [list of expression] [</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/1077520326406938399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/05/reading-and-printing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1077520326406938399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1077520326406938399'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/05/reading-and-printing.html' title='Reading and Printing'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-2137289472811066868</id><published>2013-05-19T17:50:00.000-07:00</published><updated>2013-05-19T17:50:01.993-07:00</updated><title type='text'>End Statement</title><summary type="text">

The END statement terminates program execution , closes all files and returns to the command level.

Syntax

END


Generally, the END statement indicates the end of a BASIC program.
END statement may be placed any where in the program to terminate execution.
END closes all files.
GW - BASIC always returns to the command level after END is executed.


Example 2


&amp;nbsp; &amp;nbsp; &amp;nbsp; . &amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/2137289472811066868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/05/end-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/2137289472811066868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/2137289472811066868'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/05/end-statement.html' title='End Statement'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-1008245871733519601</id><published>2013-05-07T02:36:00.000-07:00</published><updated>2013-05-07T02:36:56.404-07:00</updated><title type='text'>BASIC Statements</title><summary type="text">

Program comments - the REM Statement&amp;nbsp;

The REM statement allows remarks to be inserted in program.

Syntax

LN REM &amp;nbsp;[comment]

&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [comment]

Where,&amp;nbsp;

LN : Line Number

Comment : Remarks written by the programmer

&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Apostrophe (&#39;) may be used in place of REM.

Points to&amp;</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/1008245871733519601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/05/basic-statements.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1008245871733519601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1008245871733519601'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/05/basic-statements.html' title='BASIC Statements'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-696332927225607541</id><published>2013-05-05T17:48:00.001-07:00</published><updated>2013-05-05T17:48:20.414-07:00</updated><title type='text'>RM DIR Command</title><summary type="text">

The RMDIR Command is used to delete a sub directory.

Syntax

RMDIR pathname

Where,

Path name : Location of sub directory to be removed (deleted)



The path name must not exceed 63 characters.
The sub directory is to be removed from its present directory
The sub directory to be deleted must be empty (i.e. with no files)


Example 27


1. RMDIR CLASS IX (press enter key)

It is used to delete</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/696332927225607541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/05/rm-dir-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/696332927225607541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/696332927225607541'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/05/rm-dir-command.html' title='RM DIR Command'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-1560354748685466515</id><published>2013-05-03T22:41:00.000-07:00</published><updated>2013-05-03T22:41:04.692-07:00</updated><title type='text'>CH DIR command</title><summary type="text">

The CHDIR command is used to change from one working directory to another

Syntax

CHDIR path name

Where,

path name : Location of sub directory to be changed into.



The path name can have maximum 63 characters.


Example 26


1. CHDIR &quot;CLASS IX&quot; (press enter key)

It is used to change to sub directory CLASS X from current directory.

2. CHDIR &quot; C : \ GWBASIC&quot; (press enter key)

It is used </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/1560354748685466515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/05/ch-dir-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1560354748685466515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1560354748685466515'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/05/ch-dir-command.html' title='CH DIR command'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-4856037810930193558</id><published>2013-04-30T00:42:00.002-07:00</published><updated>2013-04-30T00:42:35.705-07:00</updated><title type='text'>MKDIR Command</title><summary type="text">

The MKDIR is used to create a sub directory.

Syntax

MKDIR Path name

Where,

Path name : Location of the sub directory to be created.


path name must not exceed 63 characters.
sub directory can be created in a default drive or in other drives.


Example 25


1. MKDIR &quot;CLASSIX&quot; (press enter key)

Creates sub directory GWBASIC inside the current directory.

2. MKDIR &quot;C : GWBASIC CLASS X&quot; (</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/4856037810930193558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/04/mkdir-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/4856037810930193558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/4856037810930193558'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/04/mkdir-command.html' title='MKDIR Command'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-5624946219147318898</id><published>2013-04-27T18:39:00.000-07:00</published><updated>2013-04-27T18:39:02.178-07:00</updated><title type='text'>Additional Commands</title><summary type="text">

LOAD Command

The LOAD command is used to load a file from A diskette or hard disk into the memory.

Syntax

LOAD file name (,r)

Where,

file name : The name of file to be loaded.

r : &amp;nbsp; This option runs the program.

Points to remember


If the extension is omitted while writing the file name , the file having the same name with extension .BAS will be loaded.
LOAD command closes all open</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/5624946219147318898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/04/additional-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/5624946219147318898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/5624946219147318898'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/04/additional-commands.html' title='Additional Commands'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-1636913316601788646</id><published>2013-04-22T04:11:00.000-07:00</published><updated>2013-04-22T04:11:30.092-07:00</updated><title type='text'>CONT</title><summary type="text">

The CONT command is used to continue program execution after a break.

Syntax

CONT


Resumes program execution after CTRL+C, STOP or END halts a program.
Execution continues at the point where the break occurs..
CONT is useful in debugging, it lets you to set break point with the STOP statement , OR use GOTO to resume execution at a particular line number. &amp;nbsp; &amp;nbsp;


</summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/1636913316601788646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/04/cont.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1636913316601788646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1636913316601788646'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/04/cont.html' title='CONT'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4780134334593779356.post-1556272868449429512</id><published>2013-04-15T05:05:00.000-07:00</published><updated>2013-04-15T05:05:22.188-07:00</updated><title type='text'>SOUND</title><summary type="text">
The sound command is used to generate sound through the speaker.
Syntax
SOUND freq. duration
Where ,
freq. &amp;nbsp;: The desired frequency in hertz (Cycles per second)&amp;nbsp;
duration : The desired duration in clock ticks.


freq. is a numeric expression within the range of 37 to 32,767.
clock ticks occurs 18.2 times per second.
duration must be expressed within the range of 0 to 65,535.

Example </summary><link rel='replies' type='application/atom+xml' href='http://history-ofcomputer.blogspot.com/feeds/1556272868449429512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/04/sound.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1556272868449429512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4780134334593779356/posts/default/1556272868449429512'/><link rel='alternate' type='text/html' href='http://history-ofcomputer.blogspot.com/2013/04/sound.html' title='SOUND'/><author><name>history-ofcomputer.blogspot.com</name><uri>http://www.blogger.com/profile/02125600287306528114</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>