This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a little program to accept a list of words, sort them without using the sort method, and output them in alphabetical order | |
j = 0 | |
words = [] | |
words2 = [] | |
a_word = 'a' # dummy initialization to get into the until loop below | |
i = 0 | |
puts "Type a word and press <Enter> (Enter a blank line to quit):" | |
# Loop to accept an unspecified number of words-- creates original array | |
until a_word.empty? | |
a_word = gets.chomp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a little program to accept a list of words, sort them without using the sort method, and output them in alphabetical order | |
i, j = 0, 0 # initialization of index variables | |
words, words2 = [], [] | |
a_word = 'a' # dummy initialization to get into the until loop below | |
puts "Type a word and press <Enter> (Enter a blank line to quit):" | |
# Loop to accept an unspecified number of words-- creates original array | |
until a_word.empty? | |
a_word = gets.chomp | |
unless a_word.empty? | |
words.push a_word |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<table width=320 border=0> | |
<tr> | |
<td> | |
<center> | |
<object width="320" height="200"> | |
<param name="movie" value="http://www.youtube.com/v/CQVFpfVSUUU&&fs=1"> | |
</param> | |
<param name="allowFullScreen" value="true"> | |
</param> |