Next: factorial Up: Program Listings Previous: average.c

cio.c


\* program to echo keyboard input to screen */

#include	<stdio.h>

/*	copy input to output	*/

main()
{
	int	c;

	while ((c = getchar()) != EOF)
		putchar(c);
}


Dave.Marshall@cm.cf.ac.uk
Wed Sep 14 10:06:31 BST 1994