Home  |  IT Zone  | Practice ZoneTips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Be Aware  |  Articles  | Funny Pics | Entertainment | Songs | Simple Joys of Life |

What is the function and syntax of DO WHILE ….. LOOP statement? (Qbasic)

  • What is the function and syntax of DO WHILE ….. LOOP statement? 
    • This is used to execute a function of instruction for a given number of times.
          Syntax:
              DO WHILE (condition)
                  statements
              LOOP

          Example:
              REM a program to print the series from 1 to 10
      CLS
      c = 1
      DO WHILE c <= 10
          PRINT c
          c = c + 1
      LOOP
      END

Share :

X
Back To Top

facebook main

Powered by Blogger.