Sorting Children's Names

Familiarize yourself with composite data types in Ruby and learn to sort elements of an array.

Problem

Write a program that asks for a list of names, and then outputs them in alphabetical order. The program should end when the user enters 0.

Access this course and 1400+ top-rated courses and projects.