Home »

Differentiate between the while and for loop in C#?

Question ListCategory: C#.NETDifferentiate between the while and for loop in C#?
denielshakespeare5 author asked 9 years ago
1 Answers
jamessmith05 author answered 8 years ago

The while and for loops are used to execute those units of code that need to be repeatedly executed, unless the result of the specified condition evaluates to false. The only difference between the two is in their syntax. The for loop is distinguished by setting an explicit loop variable.

Please login or Register to Submit Answer