CSE 271: Programming Assignment 2

Assigned: 28 January
Due: 31 January

Abstract

Write a C program that generates the product of a list of integers.

Details

Use the standard C library functions scanf(3C) and printf(3C) to read a series of integers from one or more lines of standard input (terminated by EOF or a non-integer) and output their product. A properly implemented program will work as follows:

Submission Requirements

  1. As usual, the program must be named p2.c and must reside in the cse271.131/p2 subdirectory.
  2. Create and use an appropriate Makefile that will compile your program using make, and will clean the directory with make clean.
  3. Your name and date must be in the comment section.
  4. Do a touch DONE when the program is ready to be collected.

Last revised: 24 January 2013.