void main(){ int i=0, a=0, x=0, y=0; reset(100,100); x= -1; y= 99; while(a != 1){ reset(100, 100); if((x<=0 && x>=-99) && y>= 0){ y--; x--; } if((x<=0 && x>=-100) && y<= 0){ y--; x++; } if(x>=0 && y<= -1){ y++; x++; } if(x>=0 && y>= 0){ y--; x--; } addLine(0, 0, x, y, 4); } }