continue Statement2 Skip Loop Iteration C# with Example



continue Statement2 Skip Loop Iteration C# with Example

 using System;

namespace CSharpFundamentals
{
    class continueStatement2SkipLoopIteration
    {
        private static void Main(string[] args)
        {
			for(int i = 0; i <= 10; i++) 
			{
				if((i%2) != 0) 
					continue;
				Console.WriteLine(i);
			}
		}
    }
}
 

0 Comment's

Comment Form

Submit Comment