Main.cs
using
System;
class
Program {
-
public
static
int
Main() {
-
int
i = 0;
-
while
(i<20) {
-
i++;
-
if
(i%2 == 0) {
-
Console.Write(
"{0} "
, i);
-
}
-
}
-
Console.ReadKey();
-
return
0;
-
}
}
using
System;
class
Program {
-
public
static
int
Main() {
-
int
i = 0;
-
while
(i<20) {
-
i++;
-
if
(i%2 == 0) {
-
Console.Write(
"{0} "
, i);
-
}
-
}
-
Console.ReadKey();
-
return
0;
-
}
}
2 4 6 8 10 12 14 16 18 20