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}|",  999);            //  Aligned  right
            Console.WriteLine("|{0,-10}|",  000);            //  Aligned  left
      }
}
    
   
  
   



Output

|       999|
|0         |


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Console Output Format