/* File: scanf4.c This program shows the return values given by scanf. */ /* Include only the standard library */ #include main() { int n1, n2, n3, rv ; printf("Enter three integers: ") ; rv = scanf("%d%d%d", &n1, &n2, &n3) ; printf("n1 = %d, n2 = %d, n3 = %d, rv = %d\n", n1, n2, n3, rv) ; }