logo CodeStepByStep logo


Language/Type: C# basics println
Related Links:

Write a complete C# program in a class named PrintProgram whose output is the text that would be the source code of a C# program named Hello that prints "Hello, world!" as its output:

public class Hello {
    public static void Main() {
        Console.WriteLine("Hello, world!");

Your program must produce exactly the output shown in order to pass (using exactly four spaces for each increment of indentation in the output).

Class: Write a complete C# class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.