#!/usr/bin/ruby $hello = "Hello World\n" print $hello print $hello*3 $hello = ['Hello','Hi','Greetings'] print $hello[0] + "\n"; print $hello[1] + "\n"; print $hello[2] + "\n"; print "Say Hi: \n"; while input = STDIN.gets input.chop! if input == $hello[1] print "\n" + "Hi.\n"; break; else print "I heared '", input ,"'. Try again.\n"; end end