Sunday 31 May 2020

C# Complete Tutorial

Important top 50 programs to learn complete C#
 
    In this we will be looking into all the C# concepts with the programs. Only the programs with the comments will be provided for better understanding

Program 1: Starting with usual "Helllo world" program

using System;

 namespace HelloWorldApp

{

    class HelloWorld

    {

        static void Main(string[] args)

        {

             /* This is multiline comment in C# */

            // This is single line  comment in C#

             

            //Console.WriteLine is used to print the given text in console screen

            Console.WriteLine("Hello World");

            //Console.Read waits for reading the next key or line from the user

            Console.ReadKey();

        }

    }

}

Program 2: 

No comments:

Post a Comment