// Read numbers until eof or non-number encountered // Andrew Taylor - andrewt@unsw.edu.au // 27/3/2017 #include int main(void) { int num; // scanf returns the number of items read while (scanf("%d", &num) == 1) { printf("you entered the number: %d\n", num); } return 0; }