Post Reply 
Let's vote for suggestions and bugs
07-21-2019, 09:12 AM
Post: #89
BREAK still reboot the calc
After a while on TI and Casio calcs (graph90+E python is rather speedy)
I tried again to make a program on the Prime and bingo, BREAK
breaks again the calc.

Code:
EXPORT Queens(N)
BEGIN
 MAKELIST(0,X,1,N)▶L1;
 0▶S;0▶T;1▶I;1▶J;0▶C;
 WHILE I>0 DO
  IF C<N THEN C+1▶C;T+1▶T;I-1▶J;
   WHILE J>0 DO
    IF C==L1(J) THEN BREAK;END;
    IF ABS(C-L1(J))==(I-J) THEN BREAK;END;
    J-1▶J;
   END;
   IF J≤0 THEN C▶L1(I);I+1▶I;
    IF I>N THEN S+1▶S;I-1▶I;
    ELSE 0▶C;END;
   END;
  ELSE I-1▶I;L1(I)▶C;END; 
 END;
 PRINT(T);
 PRINT(S);
END;

On the virtual calc, no problem, but regularly on the calc this lead to the blue screen of the reboot ...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
BREAK still reboot the calc - Oulan - 07-21-2019 09:12 AM



User(s) browsing this thread: 1 Guest(s)