You will use long type to store the result of int calculation.
Convert the million into a long type before the calculation starts.
using System; class Program{//from ww w. j a v a 2s.co m static void Main(string[] args){ int million = 1000000; long millionInLong = million; long correctResult = millionInLong * millionInLong; Console.WriteLine("Million times million: " + correctResult.ToString("N0")); // Alternative calculation of a big valule long r = (long)million * (long)million; Console.WriteLine("Million times million: " + r.ToString("N0")); } }