ChandraMDE
06-05-2013, 09:54
Hello, Eros.
I have 2 simple codes and they are:
'**********CODE - 1
Uses "console"
Dim i, j As Integer
For i = 1 To 10
For j = 1 To 3
If i=5 Then Next
Console_Write(i&" ")
Next j
PrintL
Next i
WaitKey()
-----------------------------------------------------------
This is the CODE-1 result:
1 1 1
2 2 2
3 3 3
4 4 4
5 6 6 6
7 7 7
8 8 8
9 9 9
10 10 10
-----------------------------------------------------------
'**********CODE - 2
Uses "console"
Dim i, j As Integer
For i = 1 To 10
For j = 1 To 3
If i=5 Then
Next
End If
Console_Write(i&" ")
Next j
PrintL
Next i
WaitKey()
The 1st code interpreted succesfully, while the 2nd was generating error 32.
Please advice.
Thanks and Regards.
I have 2 simple codes and they are:
'**********CODE - 1
Uses "console"
Dim i, j As Integer
For i = 1 To 10
For j = 1 To 3
If i=5 Then Next
Console_Write(i&" ")
Next j
PrintL
Next i
WaitKey()
-----------------------------------------------------------
This is the CODE-1 result:
1 1 1
2 2 2
3 3 3
4 4 4
5 6 6 6
7 7 7
8 8 8
9 9 9
10 10 10
-----------------------------------------------------------
'**********CODE - 2
Uses "console"
Dim i, j As Integer
For i = 1 To 10
For j = 1 To 3
If i=5 Then
Next
End If
Console_Write(i&" ")
Next j
PrintL
Next i
WaitKey()
The 1st code interpreted succesfully, while the 2nd was generating error 32.
Please advice.
Thanks and Regards.