diff --git a/EulerBrick.csproj b/EulerBrick.csproj index f2707e8..eaee1af 100644 --- a/EulerBrick.csproj +++ b/EulerBrick.csproj @@ -15,8 +15,8 @@ C:\Users\mj-pr\OneDrive\Documents\unlicense.txt Mijo Software https://mijo-software.de - 1.0.2.3 - 1.0.2.3 + 1.1.0.4 + 1.1.0.4 False diff --git a/Program.cs b/Program.cs index e1cf53d..1810aea 100644 --- a/Program.cs +++ b/Program.cs @@ -1,10 +1,20 @@ -ulong +//string length; + +ulong n = 0, i = 0, a_min = 1, b_min = 1, c_min = 1, a_max = 1000, b_max = 1000, c_max = 1000; double d, e, f, g; +Console.WriteLine("EulerBrick"); +Console.Write("Input the length of the run: "); +string length = Console.ReadLine(); +if (ulong.TryParse(s: length, result: out a_max)) +{ + b_max = c_max = a_max; +} + for (ulong a = a_min; a < a_max; a++) { for (ulong b = b_min; b < b_max; b++)