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.

Get hands-on with 1400+ tech skills courses.