C# Program to retrive value from ARRAY





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

namespace Simple1
{
    class Program
    {
        static void Main(string[] args)
        {
            string pname = "smarty";
            int page = 21;
            char pinitial ='A';
            Console.WriteLine("His Name is {0}",pname);
            Console.WriteLine("Age : {0}\nInitial :{1}",page,pinitial);
            Console.ReadLine();
        }
    }
}


Output :



Previous Post Next Post