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 21:07:50

MixJuice GET URL : kidspod.club/mj/345

057

  • No registered tag exist.

SOURCE CODE

var nx;
var flag;
nx = 0;
flag = 0;
while(1){
 if(flag == 0){
  if(nx < 30){
    nx = nx + 1;
  }
  else{
   nx = nx - 1;
   flag = 1;
  }
 }
 else{
  if(nx > 0){
   nx = nx - 1;
  }
  else{
   nx = nx + 1;
   flag = 0;
  }
 }
 cls();
 lc(nx, 22);
 log("_");
 sleep(100);
}

COMMENT