Module: Let's get acquainted!


Problem

4/4

The simplest program

Theory Click to read/hide

A simple C# program looks like this:

class Program {
    static void Main()
    {
    }
}

Let's explain each character in the program:

class Program {...}  is the class contained by default. It starts the execution of the program.
static void Main -  method (function) is the starting point of any application, that is, the moment from which the program starts working.

() - Empty brackets mean that Main has no arguments.
{} - Curly braces mark the beginning and end of the main program. All actions that need to be performed are written inside curly braces.

What does our program do?
Since there is nothing inside the curly braces, our program does nothing, it just follows the rules of the C# language, it can be compiled and get an exe file - an executable file that can be run. 

Problem

Run the program, make sure the program works but no result.