Demo entry 5865368

testing

   

Submitted by anonymous on Aug 18, 2016 at 21:47
Language: C#. Code size: 257 Bytes.

//++ operator
class MainClass
{
    static void Main()
    {
        double x;
        x = 1.5;
        Console.WriteLine(++x);
        x = 1.5;
        Console.WriteLine(x++);
        Console.WriteLine(x);
    }
}
/*
Output
2.5
1.5
2.5
*/

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).