Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best Bubble Sort
#8
>"It actually creates an endless loop. It is assumed that inside the loop, there is a condition to break out of it. However, `WHILE... WEND` is not recommended to be used in this programming system simply because there is no `EXIT WHILE`. Freebasic could do that, but QB64 cannot."<

QB64 can EXIT WHILE don't mislead please
Code: (Select All)
While 1
    i = i + 1
    If i >= 10 Then Exit While
    Print i
Wend
b = b + ...
Reply


Messages In This Thread
Best Bubble Sort - by dbox - 10-20-2023, 07:36 PM
RE: Best Bubble Sort - by bplus - 10-20-2023, 07:43 PM
RE: Best Bubble Sort - by mnrvovrfc - 10-20-2023, 09:21 PM
RE: Best Bubble Sort - by bplus - 10-20-2023, 11:24 PM
RE: Best Bubble Sort - by NakedApe - 10-24-2023, 06:00 PM
RE: Best Bubble Sort - by bplus - 10-24-2023, 07:06 PM
RE: Best Bubble Sort - by mnrvovrfc - 10-24-2023, 07:42 PM
RE: Best Bubble Sort - by bplus - 10-24-2023, 07:59 PM
RE: Best Bubble Sort - by NakedApe - 10-31-2023, 07:30 PM



Users browsing this thread: 1 Guest(s)