Tuesday, May 10, 2011

Control structures




Control structures allow you to control the flow of your program's execution. If left unchecked by control-flow statements, a program's logic will flow through statements from left to right, and top to bottom. While some very simple programs can be written with only this unidirectional flow, and while some flow can be controlled by using operators to regulate precedence of operations, most of the power and utility of any programming language comes from its ability to change statement order with structures and loops.


1.      Branching
                  .  IF

                  .  Case

                  .  Goto

2.      Looping

              .  For next

               .  Do while

                .  Do until


.

No comments:

Post a Comment