Skip to content

Numbers#10

Open
cecilianyberg wants to merge 5 commits into
svenrog:masterfrom
cecilianyberg:Numbers
Open

Numbers#10
cecilianyberg wants to merge 5 commits into
svenrog:masterfrom
cecilianyberg:Numbers

Conversation

@cecilianyberg

Copy link
Copy Markdown

No description provided.

@cecilianyberg

Copy link
Copy Markdown
Author

I wrote this number app as a part of an excercise of school. This is my proposted solution of the stated problem.

}
}

//Console.WriteLine("Värdet är " + number);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prova att göra klart denna övning.
Man behöver loopa igenom numberArray igen med en ytterligare for-loop.
Sedan behöver du hålla koll på minValue, maxValue, sum och count.
count skall inte ökas och sum skall inte adderas if (numberArray[i] == null)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

För att hoppa vidare i en for-loop kan man använda nyckelordet continue.
För att komma åt värdet av en nullbar double så behöver man skriva numberArray[i].Value

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants