-- Operator (C# Reference)

using System;
class MainClass
{
static void Main()
{
double x;
x = 1.5;
Console.WriteLine(--x);
x = 1.5;
Console.WriteLine(x--);
Console.WriteLine(x);
}
}


Output

0.5
1.5
0.5

0 comments: