Wednesday, January 22, 2014

IntDemo.cs

using System;class IntDemo
    {
        static void Main(string[] args)
        {
            int year = 2014;
            Console.WriteLine("Happy New Year {0}", year);
        }
    }
Point to note : In languages like C and Java int is a primitive type. In C# it is a struct type which has
more members. While typing or copying this program in Visual Studio, keep the cursor over the keyword 'int' and press F12 to explore.

No comments:

Post a Comment