Assign value to int variable

image_pdfimage_print
   
  

using System;

class UnaryOpsApp
{
    static void Main(string[] args)
    {
        int a;
        a = -42;
        Console.WriteLine("{0}", a);
    }
}

   
     


This entry was posted in Data Types. Bookmark the permalink.