(i'm new) Question about for statements (probably easy to most of you)

for(int x = 0; x < 100; x++)

Can be rewritten

{
  int x = 0;
  while (x < 100) {
    // body of the loop goes in here
    x += 1;
  }
}