Projects: Arrays (c)
Instructions: Create a C program that runs successfully for each project below.
Project 1
Create an array of arrays: the first array contains years and the second array contains population numbers. Here is the data:
U.S. Population
Year 2000 1950 1900 |
Number of People 272690813 152271417 076094000 |
Loop through the array of arrays to print this table on the screen.
Project 2
Use an array of arrays and loop through the array to print this on the screen:
California has many different zip codes and area codes.
|
Zip Code 94087 94520 94132 95610
|
|
Area Code 408 925 415 916
|