Skip to content

Test input length #1

Description

@Yashil

Hi,

File Program.cs: In the "Test the resulting accuracy" part, it's better to replace all "inputs.Length" with "testInputs.Length".

e.g.
for (int i = 0; i < inputs.Length; i++)
better be replaced by
for (int i = 0; i < testInputs.Length; i++)

and
Console.WriteLine("Correct " + correct + "/" + inputs.Length + ", " + Math.Round(((double)correct / (double)inputs.Length * 100), 2) + "%");
better be replaced by
Console.WriteLine("Correct " + correct + "/" + testInputs.Length + ", " + Math.Round(((double)correct / (double)testInputs.Length * 100), 2) + "%");

Best,

Yashil.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions