demonstrates variables : int : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » int »

 

demonstrates variables









    


using System; 
 
public class Example2DemonstratesVariables {   
  public static void Main() {   
    int x; 
    int y; 
  
    x = 10;
  
    Console.WriteLine("x contains " + x);   
    y = x / 2;  
  
    Console.Write("y contains x / 2: ");  
    Console.WriteLine(y);  
  }   
}


           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» int