You have been told how to write a for() statement, yes?
for(int x = 1; x<=10;x++) {}
The numbers in the statement don't have to be constants like 1 or 10 - they can be expressions using other variables defined outside the statement itself.
You have been told how to write a for() statement, yes?
for(int x = 1; x<=10;x++) {}
The numbers in the statement don't have to be constants like 1 or 10 - they can be expressions using other variables defined outside the statement itself.