Thursday, December 13, 2012

strings - format character



#!/usr/bin/ruby -w

name2 = "joe"
nam3 = 'mary'
puts "hello #{name2}, where is #{nam3}"
puts "hi %s. this is %s" % [name2, nam3]

No comments:

Post a Comment