1.1 – First Program in C#

Question


Write a program to print Hello on screen and then print Welcome to Snazzymedia in next line.

Solution


class FirstProgram
    {
        static void Main(string[] args)
        {
            Console.WriteLine(“Hello”);
            Console.WriteLine(“Welcome to Snazzymedia”);
        }
    }

 Previous                                               Home                                                    Next


Output

1