logo

Crowdly

Mis on täringu vise kõige suurem  võimalik    väärtus? Random rnd = new Ran...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Mis on täringu vise kõige suurem võimalik  väärtus?

Random rnd = new Random();

int cpuRnd, userRnd;

int cpuScore = 0;

int userScore = 0;

cpuRnd = rnd.Next(1, 7);

userRnd = rnd.Next(1, 7);

if (cpuRnd > userRnd)

{

    cpuScore++;

}

else if (cpuRnd < userRnd)

{

    userScore++;

}
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.tktk.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!