Display - AS 2017

From TRCCompSci - AQA Computer Science
Revision as of 09:28, 3 March 2017 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Code

static void Display(char[,] Field, string Season, int Year)
{
    Console.WriteLine("Season: " + Season + " Year number: " + Year);
    for (int Row = 0; Row < FIELDLENGTH; Row++)
    {
        for (int Column = 0; Column < FIELDWIDTH; Column++)
        {
            Console.Write(Field[Row, Column]);
        }
        Console.WriteLine("| " + String.Format("{0,3}", Row));
    }
}

Explanation