Advertisement

Responsive Advertisement

Lesson: 4 Control Structure, I-Control Structure Overview

 

I-Control Structure Overview

Programming requires solving complex problems using code, to be able to solve these problems you need to learn the basic building blocks for writing a good program. These building blocks will assist one in making various decisions in the program.


One example could be wanting to obtain a positive result while disregarding the negative one. Another may be that one wishes for the program to re-run a certain section of the code, necessitating the use of control structures.


This knowledge will assist you as a programmer in choosing a specific path or direction. In this article you will understand how to work with control structures in C# using various examples.


C# offers three types of control statements:

- Selection Statements – This consists of if, else, switch, and case branching.

- Iteration Statements – This consists of do, for, foreach, and while looping.

- Jump Statements – This consists of break, continue, return, and goto statements.




Post a Comment

0 Comments