Mega Code Archive

 
Categories / C# Tutorial / Data Type
 

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);     } }