Arrays - Example 1

This example program asks you for a list of names of people and their heights. You can enter as many names as you like, but just press Enter (i.e. an empty name) when asked for the name in order to finish the list.

When you have finished entering the names, the program will tell you the name of the tallest and shortest person in the group.



Go Back