Tuesday, March 29, 2011

Flow Control

Today, we got our code off results for the course and course section class. My team was successful in creating code tested without flaws. We learned flow control and the three types: sequence, selection and repetition. We were given the syntax for the if statements, while loops, do-while loops, and for loops. With repetition, there are indeterminate and determinate loops. Finally, the breaking flow consists of break and continue. Also, blocks  define the scope of variables. Using the different types of flow control, our code can be more efficient as you wouldn’t have to rewrite code several times.

No comments:

Post a Comment