EDIT: This thread is really old, thanks for all the people who have helped, i was a complete Ruby Newbie .
I am sorry this is the wrong forum but look
i just started learning ruby and well, i made a Hello World!
anyways when i run it it gives me an error:
anyways, here is the program:
Help Please?
I am sorry this is the wrong forum but look
i just started learning ruby and well, i made a Hello World!
anyways when i run it it gives me an error:
Code:
syntax error, unexpected kEND, expecting $end
anyways, here is the program:
Code:
puts 'Hello World!'
puts 'Well, this is my first program in ruby :)'
puts 'So, What is your name?'
name = gets.chomp
puts 'Very Nice Name,' + name
puts 'Well, I hope you enjoyed my Program'
puts 'Goodbye! :) '
puts ' '
end
if name == 'Ehab'
puts 'Oh, Hello Master'
puts 'Thank you for creating me'
puts 'Work Harder learning ruby, so you can make me better'
puts ' '
puts 'If you want to enter the matrix, please type the password'
pass == gets.chomp
if pass == 'ruby'
puts 'Congratulations, You Have Cracked The Password!'
else
end
Help Please?