Tutorials Point


  Euphoria Basics
  Euphoria Useful References
  Euphoria Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

Euphoria - Loop Types


previous next AddThis Social Bookmark Button


Advertisements

Looping is the another most important aspect of any programming language. While writing your program, you may encounter a situation when you have to execute same statement many times and sometime may be infinite number of times.

There are several ways to specify for how long the process should go on, and how to stop or otherwise alter it. An iterative block may be informally called a loop, and each execution of code in a loop is called an iteration of the loop.

Following figure shows a simple logical flow of a loop:

Looping

Euphoria provides following three types of loop statements:

  1. while statement

  2. loop until statement

  3. for statement

All the above statements provide you a flexibity and ease of use based on different situations.



previous next Printer Friendly

Advertisements


  

Advertisements