05-17-2023, 08:29 PM
Hi,
Restore need label name, not variable:
Restore need label name, not variable:
Code: (Select All)
For t = 1 To 4
Restore num_A
count = 0
Do Until count = t
Read NrA
count = count + 1
Loop
Restore num_B
count = 0
Do Until count = t
Read NrB
count = count + 1
Loop
Print "First number is: "; NrA
Print "Second number is: "; NrB
Print "First plus second number: "; NrA + NrB
Next
num_A:
Data 5,10,15,20
num_B:
Data 1,2,3,4