java for loop increment two variables code example
Example: for loop with 2 variables in c++
for (int x=0, y=0 ; x < 10 && y < 10 ; x++, y++)
{
// Your code here
}
for (int x=0, y=0 ; x < 10 && y < 10 ; x++, y++)
{
// Your code here
}