Variable index : Console Output : Development C# Examples


C# Examples » Development » Console Output »

 

Variable index









    
using  System;
using  System.Collections.Generic;
using  System.Globalization;
using  System.IO;
using  System.Text;


public  class  MainClass
{
        public  static  void  Main()
        {
                        int  age  =  25;
                        string  name  =  "Jim";
                        Console.WriteLine(String.Format("{0}  is  {1}  years  old.",  name,  age));
        }

}
    
   
  
   



Output

Jim is 25 years old.


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Console Output