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 :

Facebook Twitter
Back To Top

facebook

Powered by Blogger.