Sunday, June 21, 2009

Workshop 4 Challenge Problem 1) dognames.rb

Create, test and debug a Ruby program called dognames.rb or catnames.rb to accept 3 names from the keyboard and to display each name on the screen in alphabetical order WITHOUT using a data structure such as a list.

I have written the program called dognames.rb. (I am more a dog person than a cat person)

Here is the program:



Here is the output:

No comments:

Post a Comment