|
Post by Admin on Jun 3, 2014 22:45:20 GMT -5
using System; class Program { static void Main() { int[] Numbers = new int[4]; Number[0] = 101; Number[1] = 102; Number[2] = 103; Number[3] = 104;
foreach (int k in Numbers) { Console.WriteLine(k); }
for (int j = 0; j < Numbers.Length; j++) { Console.WriteLine(Numbers); }
int i = 0; while (i < Numbers.Length) { Console.WriteLine(Numbers); i++; } } }
using System; class Program { static void Main() { for (int i = 1; i <= 20; i++) { Console.WriteLine(i);
if (i == 10) break; } } }
using System; class Program { static void Main() { for (int = 0; i <= 20; i++) { if (i % 2 == 1) continue;
Console.WriteLine(i); } } }
|
|