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
-- Operator (C# Reference)
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment