home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / discs / mag_discs / volume_3 / issue05 / vol3no4 / C / C_4_7 < prev    next >
Text File  |  1989-12-11  |  242b  |  11 lines

  1. #include <stdio.h>
  2.  
  3. int main( int argc, char *argv[] )
  4.     {
  5.     int n, i;
  6.     char s[100];
  7.     while ((n = scanf( "%d %s", &i, s )) == 2)
  8.         printf( "Got number %d, string %s\n", n, s );
  9.     if (n == EOF) return 0; else return 1;
  10.     }
  11.