Ruby program to demonstrate the argument passing to block
countries = ["India","Australia","USA","UK"];
puts "Country Names: ";
countries.each do |countries|
print " ",countries,"\n";
end
Output:
Country Names:
India
Australia
USA
UK
