pseudocode:
while i<10 do
i=i+1
print "i:",i
while j<5 do
j=j+1
print "j",jj
loop (j)
loop (i)or, in batch:
for %%i in (1,1,10) do (
echo i:%%i
for %%j in (1,1,5) do (
echo j:%%j
)
)
IN C++ For (i=0,i<5.i++)
{
For(x=0,x<5,x++)
{
Do your stuff here
}
}For Visual Basic
For i=0 to 5
For x=0 to 5
Do your stuff here
Next
NextSo you can see, there is no general Syntax. It varies depending on what programming language you are using, something you omitted to divulge.
And that is only For/Next loops. There are While and Do/While loops as well.
Stuart
thanx but i needed for gw-basic
thanx f0 the help...:)
thank al0t:)nbrane
thanx but i needed for gw-basic It is the same as Visual Basic
Stuart
