The reason is that QBasic executes code line by line, and before the WHILE a <> b not a nor b where defined and the program skipped to WEND and END. you can view you connected WiFi password with single line DOS command. The loops are the While, Do Loop, and For loop. condition is a numeric expression used to determine if the loop will execute. ; EXIT WHILE can be used for emergency exits from the loop in QB64 only. QBasic.Net - www.qbasic.net Private Sub Constant_demo_Click() Dim Counter : Counter = 10 While Counter < 15 ' Test value of Counter. This tutorial will show the While loop. The Do While...Loop is used to execute statements until a certain condition is met. What is the function and syntax of WHILE ….. WEND statement? If any pair of ith character from the start and ith character from the end are not equal then it means that the number is not a palindrome, set flag = 0.; If the flag is equal to 0 then the input number is not a palindrome. Example. The loops are the While, Do Loop, and For loop. Example 2: Clearing the keyboard buffer. QBT9_4.BAS Dim number As Integernumber = 1Do While number <= 100number = number + 1LoopA variable number is initialized to 1 and then the Do While Loop starts. If condition is True, all statements are executed until the Wend statement is encountered. Then in the DO...LOOP structure, the variable "x" is decremented each cycle. Control then returns to the While statement and condition is again checked. DO...LOOP; FOR...NEXT; UNTIL (condition) _CONTINUE QBasic/Sample Programs. CLS i = 1 INPUT "Enter any number "; n WHILE i <= 10 PRINT n; "x"; i; "="; i * n i = i + 1 WEND END DO ... LOOP It is another type of looping statement in QBASIC. Let us look at an example of this loop. CLS.