{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

scan_fact - for(i=0;i<=IMAX;i...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* scan_fact.c * Program demonstrating procedure for reading columns of numbers from * a file using scanf() and redirection. */ #include <stdio.h> #define IMAX 12 int main() { int i; int iarr[IMAX+1], farr[IMAX+1]; /* arrays to hold values read in */
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for (i=0;i<=IMAX;i++) scanf("%d %d", &iarr[i], &farr[i]); /* read in values */ /* display values */ for (i = 0; i <= IMAX; i++) printf("%d %d\n", iarr[i], farr[i]); return 0; }...
View Full Document

{[ snackBarMessage ]}