Skip to content

Test input length #1

@Yashil

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.

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