Using Variables : int : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » int »

 

Using Variables








    

using System;

public class UsingVariables
{
  static void Main(string[] args)
  {
    int MyInt = 12345;
    int MyInt2 = MyInt + 1;
    int MyInt3;

    MyInt3 = My2ndFunction(MyInt2);
  }
  static public int My2ndFunction(int myInt2)
  {
    myInt2 = myInt2 * 2;
    return myInt2;
  }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» int