public static void Main()
Console.WriteLine("Enter a number to get sum from 1 to your number.");
Console.WriteLine("1 + 2 + 3 ........ + n");
Console.WriteLine("1^2 + 2^2 + 3^2 ......... + n^2");
Console.WriteLine("1^3 + 2^3 ........... n^3");
int nomnom = Int32.Parse(Console.ReadLine());
int normal = (nomnom * (nomnom + 1)) / 2;
int sqrt = (nomnom * (nomnom + 1) * (2* nomnom + 1)) / 6;
int cube = normal * normal;
Console.WriteLine("The sum of number from 1 to your number is " + normal + ".");
Console.WriteLine("The sum of square of number from 1^2 to your number is " + sqrt + ".");
Console.WriteLine("The sum of cube of number from 1^3 to your number is " + cube +".");