int variable assignment : Int Calculation : Data Type C# Examples


C# Examples » Data Type » Int Calculation »

 

int variable assignment









    
using  System;

class  RightAssocApp
{
        static  void  Main(string[]  args)
        {
                int  a  =  1;
                int  b  =  2;
                int  c  =  3;
      
                Console.WriteLine("a={0}  b={1}  c={2}",  a,  b,  c);                
                a  =  b  =  c;
                Console.WriteLine("After  'a=b=c':  a={0}  b={1}  c={2}",  a,  b,  c);
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Int Calculation