more Predict the Number

Bash, C, Ruby