-
-
Save anonymous/78a58cc3fa6aaaad4e80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
question1 = { | |
question: "What is the capital of England? | |
", | |
answers: ["Berlin" "Oslo" "London"], | |
correct_answer: 2 | |
} | |
question2 = { | |
question: "Who started apple? | |
", | |
answers: ["Bill Gates" "Steve Jobs" "Michael Jordan"], | |
correct_answer: 1 | |
} | |
question3 = { | |
question: "Whats the real name of mafia boy? | |
", | |
answers: ["James bond" "Michael Calce" "Vandetta"], | |
correct_answer: 1 | |
} | |
questions = [ | |
question1, | |
question2, | |
question3 | |
] | |
questions.each_with_index do |question, index| | |
print question [:question] | |
gets.chomp | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment