Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numbers #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Numbers #10

wants to merge 5 commits into from

Conversation

cecilianyberg
Copy link

No description provided.

@cecilianyberg
Copy link
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
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
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