To expert programmer from novice, you need to complete knowledge the looping segments. Loop is very important thing in every programming language that saves you from repetitive nature of work. The C# supports three loops,While, do while, and for loop. However, you can also use foreach and goto statement for looping statements. While loop is one….