Advertisement
Guest User

rubyARGV

a guest
Apr 29th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. first, second, third = ARGV
  2.  
  3. puts "The script is called: #{$0}"
  4. puts "Your first variable is: #{first}"
  5. puts "Your second variable is: #{second}"
  6. puts "Your third variable is: #{third}"
  7.  
  8. print "Favorite Food? "
  9. food = gets.chomp()
  10. print "Favorite Color? "
  11. color = gets.chomp()
  12. puts "you love to eat #{food} and the color #{color}!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement