Long
using System;
public class TestLong
{
static void Main(String[] args)
{
long a = 10, b = 10, c; //Declaration of long variables
c = a + b;
Console.WriteLine("Sum= " + c);
//If we need to concatenate 2 long values
c = long.Parse("" + a + b);
Console.WriteLine("Concatenated Value= " + c);
Console.ReadLine();
}
}
Output:
Sum= 20
Concatenated Value= 1010