CS 270 Fall Semester 2018

Recitation R2: More coding in C



Write a C program in a file called R2.c, using the example shown in the Program Structure section below. This program will compute the areas of some geometrical figures based on some command-line arguments. You must declare two global arrays, then write two functions and the main function, which is the entry point for C programs. Do exactly as described in the directions below: