Finally, C# supports a while loop that tests a specific condition before or after each pass
through the loop. When this condition evaluates to false, the loop is exited.
int i = 0; while (i < 10) { i += 1; // This code executes ten times. }
Learn Web Technologies for Free. Learn C#, LINQ, ASP.NET MVC, .NET Core, jQuery, JavaScript, Angular, Node.js, HTTPS, Python, Sass, D3.js, and many more latest technologies using easy tutorials.
int i = 0; while (i < 10) { i += 1; // This code executes ten times. }
No comments:
Post a Comment