public static void Main()
int Result = SquareOfSum(a, b) - SumOfSquares(a, b);
int x = SquareOfSum(a, b);
int y = SumOfSquares(a, b);
Console.WriteLine("The Square of the Sum is: {0:n0}", x);
Console.WriteLine("The Sum of the Squares is: {0:n0}", y);
Console.WriteLine("The difference between the sum of the squares of the " +
"first one hundred natural numbers and the square of the sum is: {0:n0}", Result);
static int SumOfSquares(int from, int to)
for (int i = from; i <= to; i++)
static int SquareOfSum(int from, int to)
for (int i = from; i <= to; i++)