Guess the number/With feedback (player): Difference between revisions

m
Pedantic fixes
m (→‎{{header|Sidef}}: updated code)
m (Pedantic fixes)
Line 1,296:
=={{header|Julia}}==
 
This version uses the equationexpression <math>\left\lceil-\log\left(\frac{1}{\mathrm{upper} - \mathrm{lower}}\right) / \log(2)\right\rceil</math> to calculate the maximum number of guesses it will need.
 
<lang Julia>print("Enter an upper bound: ")
Anonymous user