using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication91 { class Increment_Operators { static void Main(string[] args) { int a = 0; // initialization. a++; // a incremented by one. It is post increment. Console.WriteLine("The value of a is {0}", a); Console.WriteLine("\nNow, the value of a is {0}", a); Console.ReadLine(); } } }
Output :
Tags:
csharp.net