Skip to content

Instantly share code, notes, and snippets.

/testprograms.rb Secret

Created May 29, 2016 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/49d6b0402a0d21a5a66cbe23efc59450 to your computer and use it in GitHub Desktop.
Save anonymous/49d6b0402a0d21a5a66cbe23efc59450 to your computer and use it in GitHub Desktop.
function calling and while loops
while input.length != 8
puts 'What is your 8 bit binary code?'
STDOUT.flush
input = gets.chomp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment