728x90
SMALL

// ドットで文字を出力しよう

using System;

 

public class Lesson05

{

    public static void Main()

    {

        int[][][] letters = {

            new int[][] {

                new int[] {0, 0, 1, 1, 0, 0},

                new int[] {0, 1, 0, 0, 1, 0},

                new int[] {1, 0, 0, 0, 0, 1},

                new int[] {1, 1, 1, 1, 1, 1},

                new int[] {1, 0, 0, 0, 0, 1},

                new int[] {1, 0, 0, 0, 0, 1}

            },

            new int[][] {

                new int[] {1, 1, 1, 1, 1, 0},

                new int[] {1, 0, 0, 0, 0, 1},

                new int[] {1, 1, 1, 1, 1, 0},

                new int[] {1, 0, 0, 0, 0, 1},

                new int[] {1, 0, 0, 0, 0, 1},

                new int[] {1, 1, 1, 1, 1, 0}

            },

            new int[][] {

                new int[] {0, 1, 1, 1, 1, 0},

                new int[] {1, 0, 0, 0, 0, 1},

                new int[] {1, 0, 0, 0, 0, 0},

                new int[] {1, 0, 0, 0, 0, 0},

                new int[] {1, 0, 0, 0, 0, 1},

                new int[] {0, 1, 1, 1, 1, 0}

            }

        };

 

        // ここに、ドットを表示するコドを記述する

 

        foreach (int[][] img in letters)

        {

            foreach (int[] line in img)

            {

                foreach(int dot in line)

                {

                if (dot == 1)

                {

                    Console.Write("@");

                }

                else

                {

                    Console.Write(" ");

                }

            }

            Console.WriteLine();

           

            }Console.WriteLine();

            

        }

       

    }

}

////

/////

   @@ 

  @ @

 @   @

@@@@@@

@    @

@    @

 

@@@@@

@   @

@@@@@

@    @

@    @

@@@@@

 

 @@@@

@    @

@    

@    

@    @

 @@@@

 

//원래는 ABC가 출력되는데, 출력을 그대로 복사하면서 간격이 달라져서 조금 다르게 나옴

//////////////////////

 

728x90

설정

트랙백

댓글