Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
for(int i=0; i <= 100; i++)
{
   println(i);
}

While-loopRemove

while([condition]) {
}

Code Block
int x=0;
while(x <= 100)
{
   println(x);
   x++;
}

...

Write a program that creates a line of trees on the screen using a loop.