Loops:-

              A type of control structure that repeats a statements or set of statements is known as Looping structure.it is also known as iterative or repetitive Structure.

In sequential structure, all statements are executed once. On the other hand ,Conditional structure may execute or skip a statement or number of statements for specific number of times.Looping structure are used for this purpose. There are different types of loop available.
Loops are basically used  for two purposes:
  1. To execute a statement or number of statements for a specified number of times.For example,a user may display his name on screen for 10 times.
  2. To use a sequence of values for example, a user may display a set of natural number from 1 to 10.
There are three types of loops available  These are follows:
  1. While loop
  2. do-while loop
  3. For loop

Post a Comment

Protected

Protected by Copyscape
 
Learn Programming © 2017. All Rights Reserved. Shared by S.A.R
Top