Declare int and use it in CSharp
Description
The following code shows how to declare int and use it.
Example
using System;//from w ww.ja v a2s.c o m
public class MainClass {
public static void Main(string[] args) {
int number1 = 12;
int number2 = 23;
Console.WriteLine("The answer is " + number1 + number2);
Console.WriteLine("The answer is " + (number1 + number2));
}
}
The code above generates the following result.