Home  |  IT Zone  |  Tips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  World Infos  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Fun / Jokes  |  Decent Quotes  |  Birthday Msgs  |  Good Morning Msgs  |  Good Night Msg  |  Husband Wife Jokes  |  Teacher Students Jokes  |  Insult Jokes  |  Love Quotes  |  Sad Quotes  |  Funny Pics  |  Be Aware  |  Articles  |  Simple Joys of Life 

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

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


    Example:
    REM a program to print series from 1 to 10
     
  • CLS
    c = 1
    DO UNTIL c = 11 (this number will not be displayed)
        PRINT c
        c = c + 1
    LOOP
    END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.