For Loop

closed account (LzqpfSEw)
1
2
3
4
for (int i = 0, int x = 10; i < 10; i++, x--;)
{
  //
}


Why isn't this valid?
try this
for(int i=0 && int x=10; i<10 && x>0; i++ && x--)

or this one

for(int i=0; i<10; i++)
{
for(x=10; x>0; x--)
{
//
}
}
Topic archived. No new replies allowed.