Oplossingen H6 week 2

Oplossing grootste getal

Toe te voegen lijnen aangeduid met //NEW.

int x= 0;
int y= 0;
int grootste= int.MinValue; //NEW
do
{
    y = y + x;
    Console.WriteLine("Voer gehele waarden in (32767=stop)");
    string instring= Console.ReadLine();
    x = Convert.ToInt32(instring);
    if (x > grootste && x != 32767) //NEW
        grootste = x; //NEW
} while (x != 32767);
Console.WriteLine($"Som is {y}");
Console.WriteLine($"Grootste getal is {grootste}");//NEW

Oplossing Boekhouder

Uitleg via filmpje

Hoger Lager

Hoger Lager met limiet

WiskundeQuiz

WiskundeQuiz met level

Wiskunde-QuizProgramma

Steen Schaar Papier

CodeMenu

Oplossing BeerSong

Last updated

Was this helpful?