Guess the number/With feedback: Difference between revisions

m
→‎{{header|R}}: Syntax highlighting.
m (→‎{{header|Phix}}: no need for two versions, minor tidy)
m (→‎{{header|R}}: Syntax highlighting.)
Line 3,597:
This solution works on the assumption that the number to be found is an integer and also assumes that the upper and lower bounds are distinct integers used inclusively. For example, this means that low=4 and high=5 should be a solvable case, but low=high=4 will throw an error. See [[Talk:Guess the number/With feedback|Talk page]] entry dated 1st June 2020.
 
<lang Rrsplus>guessANumber<-function(low,high)
{
boundryErrorCheck(low,high)
331

edits