Home  |  IT Zone  | Practice ZoneTips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Be Aware  |  Articles  | Funny Pics | Entertainment | Songs | Simple Joys of Life |

What is the function and syntax of READ...DATA Statement?

The READ statement contains the names of the memory locations to be used to store the information in. The DATA statement contains the information that is to be read in and stored in the computer's memory. 
 
Syntax of READ...DATA Statement.
 
READ (variable1, variable2, variable3, ...)
...........
..........
..........
DATA (constant1, constant2, constant3, ...)


Example:
CLS
READ n$, cl, r
PRINT "Name = "; n$
PRINT "Class = "; cl
PRINT "Roll = "; r
DATA John,5,1
END

Share :

X
Back To Top

facebook main

Powered by Blogger.