while and for loop in C#

Write differences between the while and for loop in C#.

E

Expert

Verified

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. Single difference between the two is in their syntax. For loop is distinguished by setting the explicit loop variable.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.