public static void Main()
int[] nums = createRandomArray(10);
Console.WriteLine("The array is:");
int sum = arraySum(nums);
Console.Write("The Sum of the Array is: {0}", arraySum(nums));
int diff = bigMinusLittle(nums);
Console.WriteLine("The difference between the biggest and smallest number is: {0}", diff);
Console.Write("The values from {0} to {1} are :", start, end);
printArr(startEnd(start, end));
Console.Write("The rotated array is ");
public static int arraySum(int[] nums)
for (int i = 0; i < nums.Length; i++)
public static int[] startEnd(int start, int end)
int[] result = new int[0];
public static int bigMinusLittle(int[] nums)
public static int[] rotate(int[] nums)
int[] result = new int[0];
public static int[] createRandomArray(int size)
int[] array = new int[size];
Random rnd = new Random();
for (int i = 0; i < size; i++)
array[i] = rnd.Next(0, 100);
public static void printArr(int[] nums)
System.Console.Write("(");
for (int i = 0; i < nums.Length; i++)
System.Console.Write(nums[i]);
if (i == nums.Length - 1)
System.Console.Write(", ");
System.Console.WriteLine(")");