LET is used for storing a value can be an expression of literal and must be same type as the variable Syntax Let <variable=<expression> Example LET num 1=20or a *b+c
READ statement is used to read data from DATA statement into variables. The purpose of statement is to store the numeric and string constants that are accessed by the programs READ statement. Syntax READ variable (variable 2) DATA constants 1[constant] Example READS, C DATA 850, 800
Introduction:- Every commands or instruction in QBASIC is called a statements. The statements or instruction should be given according to the rules of language in which programmer is written. The QBASIC statements are first stored in the memory of the computer and executed only when the command RUN is given (i.e F5 key ) .
Comments
Post a Comment