C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers


10,705 users

Differentiate between the while and for loop in C#.

0 votes
asked by john Guru (27,140 points)

1 Answer

0 votes
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.
answered by sara Guru (24,570 points)

Related questions

0 votes
1 answer 387 views
0 votes
1 answer 138 views
138 views asked by shivani Sr Member (1,090 points)
0 votes
1 answer 24 views
0 votes
1 answer 19 views
0 votes
1 answer 82 views