Assing value to int value

image_pdfimage_print

   
 
public class Values{
    static void Main( ) {
       int myInt = 7;
       System.Console.WriteLine("Initialized, myInt: {0}", myInt);
       myInt = 5;
       System.Console.WriteLine("After assignment, myInt: {0}",myInt);
    }
 }

           
         
     


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