public static double[] Simplify { get; private set; }
public static void Main()
Details AddOrSub = new Details();
AddOrSub.DisplayResult(Simplify);
Console.Write("Would you like to Add or Substract (1 - Add, 2 - Substract) -► ");
int Opt = int.Parse(Console.ReadLine());
Console.Write("\nHow many numbers would you like to add? -► ");
NumberSimplify = int.Parse(Console.ReadLine());
public void DisplayResult(double[] Simplify)
Console.Write("Result from Addition -► {0}", Add(Simplify));
private void AddDetails(ref double[] Simplify)
Simplify = new double[NumberSimplify];
for (int i = 0; i < Simplify.Length; i++)
Console.Write("Number {0} -► ", i + 1);
Simplify[i] = double.Parse(Console.ReadLine());
private double Add(double[] Simplify)
AddDetails(ref Simplify);
for (int i = 0; i < Simplify.Length; i++)