Using Variables

image_pdfimage_print
   
 
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;
  }
}

           
         
     


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