Saturday, January 21, 2012

Using the PRINT statement

---------------------------------------------------------------------------

If I say:

X = 5;
PRINT X;


Then the value printed out is

> 5

---------------------------------------------------------------------------

If I say:

X = 5;
PRINT "X";


Then the value printed out is

> X

---------------------------------------------------------------------------

If I say:

X = 5;
PRINT X "is the Biggest";


Then the value printed out is

> 5 is the Biggest

---------------------------------------------------------------------------

If I say:

X = 5;
PRINT "X is the Biggest";


Then the value printed out is

> X is the Biggest

---------------------------------------------------------------------------

No comments:

Post a Comment