Question:

How many kinds of Loops are there in Visual Basic?

by Guest7696  |  12 years, 9 month(s) ago

0 LIKES UnLike

My friend is a student of computer science; he is searching for the details of how many kinds of Loops are there in Visual Basic?

 Tags: Basic, KINDS, loops, Visual

   Report

1 ANSWERS

  1. Guest9143
    In programming, loops are a very absolutely crucial part of any program. All loops have the identical rudimentary functionality, as they all extend to execute a set impede of cipher until a certain status is reached. Some loops are better-suited for certain positions, whereas most of the time it is just programmer preference. Most submissions of a specific loop can generally be accomplished by utilising any of the other loops with the correct syntax.



    For Loops

    "For" loop is one of the most broadly utilised loops in programming. A "For" loop is conceived to execute a set of cipher a fixed number of times before being terminated. A loop catalogue is required to contain the enumerate for each run of the loop. Once the loop comes to its restriction, it is terminated, and the next batch of cipher is executed.
    While Loops
    "While" loops extend executing a set of instructions until a particular status is reached. For demonstration, this kind of loop will extend executing while the variable is less than four. Once the variable is set to certain thing higher than three, the loop will complete its course.
    Do Until Loops
    "Do Until" loops are utilised when codes desires to extend to be performed until a status is met. A demonstration of a "Do Until" loop would be to hold executing instructions until the variable is false. Once the variable is swapped from factual to untrue, the loop will be terminated. This loop boasts an "Exit Do" order to go out the loop former to it coming to the particular condition.
    Do While Loops
    "Do While" loops execute cipher while a specific status continues true. For demonstration, this kind of loop will execute exact cipher while variable one is larger than variable two. The cipher will extend to be performed until variable two becomes larger than variable one. This loop furthermore is adept to use the "Exit Do" statement.

Sign In or Sign Up now to answser this question!

Question Stats

Latest activity: 13 years, 1 month(s) ago.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions