Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

Problem with while statement

I'm working on a java course but having some troubles with a question

The question is
"
Your editor currently has a variable declared target to which a random number between 0 and 10 will be assigned. Print it to the console.
Under it write a small program which will keep guessing numbers and attributing them to the variable guess and printing them until the number guessed is the same as the target. "

My code is for now:

````
var target = Math.floor(Math.random() * 11);
var guess =...

Problem with while statement

from JavaScript https://ift.tt/2QzzCis
via IFTTT

Post a Comment

0 Comments