Thursday, February 20, 2014

Declare variables in program.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeclareVariable
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = 10;
            int b = 20;

            Console.WriteLine("A= " + a);
            Console.WriteLine("B= " + b);
            Console.ReadLine();
        }
    }
}

Output:



No comments:

Post a Comment