Format : Console Output Format : Development C# Examples


C# Examples » Development » Console Output Format »

 

Format









    
using  System;

class  MainClass
{
      static  void  Main()
      {
            Console.WriteLine("{0,-10:x}  --  Hexadecimal  integer",  1194719);
      }
}
    
   
  
   



Output

123adf     -- Hexadecimal integer


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Console Output Format