-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path65472.cs
39 lines (36 loc) · 1017 Bytes
/
65472.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
namespace tongji65472
{
class Program
{
static void Main(string[] args)
{
int[,] loc = new int [5,7] {
{1,1,1,1,1,1,0},
{1,1,1,1,1,0,0},
{1,1,1,1,0,0,0},
{1,1,1,1,1,1,1},
{1,1,0,0,0,0,0}
};
for (int i = 0; i < 5; i++) {
if (i % 2 == 0) {
for (int j = 0; j < 7; j++) {
if (loc[i,j] != 0) {
Console.Write("🟥");
}
}
}
else if (i % 2 == 1) {
for (int j = 0; j < 7; j++) {
if (loc[i,j] != 0) {
Console.Write("🟦");
}
}
}
Console.WriteLine();
Console.WriteLine();
}
Console.ReadKey();
}
}
}