Enjoy programming more!
Kidspod is a post site which supports young programmers.
First step to join us.
Register as a member
For members

2017/09/19 19:01:06

MixJuice GET URL : kidspod.club/mj/341

053

  • No registered tag exist.

SOURCE CODE

cls();
var x;
var flag;
x = 10;
flag = 0;
while(1){
 if(flag == 0){
  lc(x, 11);
  log("o");
  x = x + 1;
  if(x == 20){
   flag = 1;
   x = x - 1;
  }
 }
 else{
  lc(x, 11);
  log("x");
  x = x - 1;
  if(x == 9){
   flag = 0;
   x = x + 1;
  }
 }
 sleep(100);
}

COMMENT