C# Loops

In our daily life, we always repeat doing something. For example, we work from Monday to Friday repeatedly. Sometimes, we'll have to break the regular rules by taking a vacation.

In this chapter, I'm going to introduce C# loop statements and the statements to break the loops. They have the similar functions which we do in reality.

While statement, do while statement and for statement are 3 majar loop statements. The break, continue and goto are the statements to break the loop and switch the control to other places. Actually, we have another loop statement foreach loop which will be introduced after C# class and array learnt.