/* File: scanf6.c Test use of the scanf() function to read in user input. scanf() actually returns a value. It is the number of items matched. */ #include int main() { int n, m, matched ; n = 42 ; m = 99 ; printf ("Enter two integers: ") ; matched = scanf("%d%d", &n, &m) ; printf("scanf() matched %d item(s)\n", matched) ; printf("n = %d, m = %d\n", n, m) ; return 0 ; }