Write a Ruby program to draw a string as bold or italic text.
def make_tags(tag, word) "<#{tag}> #{word} </#{tag}>" end print make_tags("i", "Ruby") print "\n",make_tags("b", "Ruby")
Output:
<i> Ruby </i> <b> Ruby </b>
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer