Differentiate for loop and while in C sharp

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

E

Expert

Verified

While loop and for loops are used to perform those units of code which need to be repeatedly implemented, unless result of a specified condition estimates to false. The difference among two is in their syntax. The for loop is distinguished by setting an explicit loop variable.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.