C:\Users\▮▮▮▮▮> java C:\Users\▮▮▮▮▮\Documents\Test.java

Guess a number from 0 to 100:

50

Too low.

Guess a number from 0 to 100:

75

Too low.

Guess a number from 0 to 100:

87

Too low.

Guess a number from 0 to 100:

93

Too high.

Guess a number from 0 to 100:

90

Too low.

Guess a number from 0 to 100:

92

Correct!

It took you 6 tries to guess 92 correctly.

Create an account or to write a comment.