using System;
class Program
{
private static void Main(string[] args)
{
int[] pn = { 2, 3, 5, 7, 11, 13, 17 };
for (int i = 0; i < pn.Length; i++)
{
if (pn[i] == 7)
{
continue;
}
Console.WriteLine(pn[i]);
}
Console.ReadKey();
}
}
|
Class Program
Private Shared Sub Main(args As String())
Dim pn As Integer() = {2, 3, 5, 7, 11, 13, 17}
For i As Integer = 0 To pn.Length - 1
If pn(i) = 7 Then
Continue For
End If
Console.WriteLine(pn(i))
Next
Console.ReadKey()
End Sub
End Class
|