For statements are widely used. in C #, traversal and loop are required. Most of them use for statements. C # There are various loop structures. We need to make choices based on our own needs.
The same task can be executed multiple times in a loop. Technologies frequently used in programming such as website development. For example, the total salary of a certain department in a computer company requires that the salary information of each employee be accumulated and a total value be obtained. In this way, you can use a loop to process the corresponding information.
In c #, various cyclic structures are provided to implement repetitive tasks. Each structure has advantages. We can use appropriate cyclic structures as needed to achieve website optimization.
In C #, The for statement is the most common loop structure, which is available in most languages, but the syntax is not the same, but the usage is the same.
Link: http://www.commernet.cn/news.asp