BCX Console Demonstration Program s28.bas

 DIM a$
 DIM b
 
 INPUT "Enter a number ", a$
 
 b = VAL(a$)
 
 ?  "The value of b = ", b

Result:


 Enter a number 56
 The value of b =  56